浏览代码

Revert "Fix questions list for calculated answers - refs #8237"

This reverts commit 4b006900f470727ebc25794bdc36a27fd1ed98d8.
Angel Fernando Quiroz Campos 8 年之前
父节点
当前提交
ee874accf2
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      main/inc/lib/exercise.lib.php

+ 0 - 7
main/inc/lib/exercise.lib.php

@@ -89,13 +89,6 @@ class ExerciseLib
             $objAnswerTmp = new Answer($questionId);
             $objAnswerTmp = new Answer($questionId);
             $nbrAnswers = $objAnswerTmp->selectNbrAnswers();
             $nbrAnswers = $objAnswerTmp->selectNbrAnswers();
 
 
-            if ($answerType == FREE_ANSWER ||
-                $answerType == ORAL_EXPRESSION ||
-                $answerType == CALCULATED_ANSWER
-            ) {
-                $nbrAnswers = 1;
-            }
-
             $quiz_question_options = Question::readQuestionOption(
             $quiz_question_options = Question::readQuestionOption(
                 $questionId,
                 $questionId,
                 $course_id
                 $course_id