From 6e07810c6428f25865bf73038872e4efcaf2f25a Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 25 Feb 2019 15:47:07 +0100 Subject: [PATCH] Minor - 1.11.x fixes --- main/inc/ajax/agenda.ajax.php | 1 + main/inc/ajax/course_home.ajax.php | 20 +++--- main/inc/ajax/exercise.ajax.php | 6 +- main/inc/ajax/model.ajax.php | 11 +++- main/inc/ajax/sequence.ajax.php | 30 +++++++-- main/inc/ajax/user_manager.ajax.php | 28 ++++---- main/inc/ajax/work.ajax.php | 3 +- main/inc/lib/TicketManager.php | 64 +++++++++---------- main/lp/learnpath.class.php | 44 ++++++------- .../Component/Editor/Driver/CourseDriver.php | 1 - 10 files changed, 117 insertions(+), 91 deletions(-) diff --git a/main/inc/ajax/agenda.ajax.php b/main/inc/ajax/agenda.ajax.php index e4453d2db6..7af342ea9b 100755 --- a/main/inc/ajax/agenda.ajax.php +++ b/main/inc/ajax/agenda.ajax.php @@ -1,5 +1,6 @@ id] = $description; } - $extraField = new ExtraField('course'); - $fieldValues = $extraField->getDataAndFormattedValues($course_info['real_id']); - // Function that displays the details of the course description in html. - echo CourseManager::get_details_course_description_html( + $content = CourseManager::get_details_course_description_html( $descriptions, - $fieldValues + api_get_system_encoding(), + false ); - } else { - echo get_lang('NoDescription'); } + } + echo $content; break; case 'session_courses_lp_default': /** diff --git a/main/inc/ajax/exercise.ajax.php b/main/inc/ajax/exercise.ajax.php index 92ce1cf6f9..ff7f56ea64 100755 --- a/main/inc/ajax/exercise.ajax.php +++ b/main/inc/ajax/exercise.ajax.php @@ -730,7 +730,11 @@ switch ($action) { $objExercise = new Exercise(); $objExercise->read($exerciseId); $objQuestion = Question::read($questionId); - + $id = ''; + if (api_get_configuration_value('show_question_id')) { + $id = '

#'.$objQuestion->course['code'].'-'.$objQuestion->iid.'

'; + } + echo $id; echo '

'.$objQuestion->get_question_type_name().'

'; if ($objQuestion->type === FILL_IN_BLANKS) { echo '