Fix glossary export see BT#10895

- when using chars with accents
pull/2487/head
jmontoyaa 8 years ago
parent b3cb9f47b0
commit c42d6f13f9
  1. 22
      main/inc/lib/glossary.lib.php

@ -508,8 +508,12 @@ class GlossaryManager
*
* @return array
*/
public static function get_glossary_data($from, $number_of_items, $column, $direction)
{
public static function get_glossary_data(
$from,
$number_of_items,
$column,
$direction
) {
$_user = api_get_user_info();
$view = Session::read('glossary_view');
@ -549,10 +553,12 @@ class GlossaryManager
glossary.description as col1,
$col2
glossary.session_id
FROM $t_glossary glossary, $t_item_propery ip
WHERE
glossary.glossary_id = ip.ref AND
tool = '".TOOL_GLOSSARY."' $condition_session AND
FROM $t_glossary glossary
INNER JOIN $t_item_propery ip
ON (glossary.glossary_id = ip.ref AND glossary.c_id = ip.c_id)
WHERE
tool = '".TOOL_GLOSSARY."'
$condition_session AND
glossary.c_id = ".api_get_course_int_id()." AND
ip.c_id = ".api_get_course_int_id()."
$keywordCondition
@ -573,6 +579,10 @@ class GlossaryManager
$array[1] = $data[1];
}
if (isset($_GET['action']) && $_GET['action'] == 'export') {
$array[1] = api_html_entity_decode($data[1]);
}
if (api_is_allowed_to_edit(null, true)) {
$array[2] = $data[2];
}

Loading…
Cancel
Save