Fix save text with oral expression questios - refs BT#12283

remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent d1d758141a
commit 4360d5e559
  1. 9
      main/inc/ajax/exercise.ajax.php

@ -359,8 +359,13 @@ switch ($action) {
$objQuestionTmp = Question::read($my_question_id, $course_id);
// Getting free choice data.
if ($objQuestionTmp->type == FREE_ANSWER && $type == 'all') {
$my_choice = isset($_REQUEST['free_choice'][$my_question_id]) && !empty($_REQUEST['free_choice'][$my_question_id]) ? $_REQUEST['free_choice'][$my_question_id]: null;
if (
($objQuestionTmp->type == FREE_ANSWER || $objQuestionTmp->type == ORAL_EXPRESSION)
&& $type == 'all'
) {
$my_choice = isset($_REQUEST['free_choice'][$my_question_id]) && !empty($_REQUEST['free_choice'][$my_question_id])
? $_REQUEST['free_choice'][$my_question_id]
: null;
}
if ($type == 'all') {

Loading…
Cancel
Save