Skip to content

Commit

Permalink
Fix questions list for calculated answers - refs #8237
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 19, 2016
1 parent 2160752 commit 4b00690
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/inc/lib/exercise.lib.php
Expand Up @@ -89,6 +89,13 @@ public static function showQuestion(
$objAnswerTmp = new Answer($questionId);
$nbrAnswers = $objAnswerTmp->selectNbrAnswers();

if ($answerType == FREE_ANSWER ||
$answerType == ORAL_EXPRESSION ||
$answerType == CALCULATED_ANSWER
) {
$nbrAnswers = 1;
}

$quiz_question_options = Question::readQuestionOption(
$questionId,
$course_id
Expand Down

0 comments on commit 4b00690

Please sign in to comment.