Fixing question when using all in one page

skala
Julio Montoya 15 years ago
parent 0069725e98
commit 574d38f93c
  1. 2
      main/exercice/exercise.class.php
  2. 4
      main/exercice/exercise_result.php

@ -2226,7 +2226,7 @@ class Exercise {
}
} elseif($answerType == MULTIPLE_ANSWER_TRUE_FALSE) {
if ($origin!='learnpath') {
ExerciseShowFunctions::display_multiple_answer_true_false($answerType, $studentChoice, $answer, $answerComment, $answerCorrect,0,0,0);
ExerciseShowFunctions::display_multiple_answer_true_false($answerType, $studentChoice, $answer, $answerComment, $answerCorrect,0,$questionId,0);
}
} elseif($answerType == MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE ) {
if ($origin!='learnpath') {

@ -198,7 +198,7 @@ foreach ($questionList as $questionId) {
unset($objQuestionTmp);
// decide how many columns we want to use to show the results of each type
if($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION) {
if($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION || MULTIPLE_ANSWER_TRUE_FALSE) {
$colspan=4;
} elseif($answerType == MATCHING || $answerType == FREE_ANSWER) {
$colspan=2;
@ -224,7 +224,7 @@ foreach ($questionList as $questionId) {
</td>
</tr>
<?php
if ($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION ) {
if ($answerType == UNIQUE_ANSWER || $answerType == MULTIPLE_ANSWER || $answerType == MULTIPLE_ANSWER_COMBINATION || $answerType == MULTIPLE_ANSWER_TRUE_FALSE) {
?>
<tr>
<td width="5%" valign="top" align="center" nowrap="nowrap">

Loading…
Cancel
Save