|
|
|
@ -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') { |
|
|
|
|