]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11310 - Multichoice edititing form should have space for 5 answers by default...
authortjhunt <tjhunt>
Mon, 17 Sep 2007 14:39:52 +0000 (14:39 +0000)
committertjhunt <tjhunt>
Mon, 17 Sep 2007 14:39:52 +0000 (14:39 +0000)
question/type/multichoice/edit_multichoice_form.php

index 2e0fc3b1e51bd2b8636972f1d42d5ac8d0b23d17..296cb4ce3c2143a7e4b21c60e50700801a6d5137 100644 (file)
@@ -55,8 +55,7 @@ class question_edit_multichoice_form extends question_edit_form {
             $countanswers = 0;
         }
         if ($this->question->formoptions->repeatelements){
-            $repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + QUESTION_NUMANS_ADD))?
-                                QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD);
+            $repeatsatstart = max(5, QUESTION_NUMANS_START, $countanswers + QUESTION_NUMANS_ADD);
         } else {
             $repeatsatstart = $countanswers;
         }