]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed typo preventing the editing of multianswer questions.
authorgustav_delius <gustav_delius>
Tue, 11 Apr 2006 07:16:10 +0000 (07:16 +0000)
committergustav_delius <gustav_delius>
Tue, 11 Apr 2006 07:16:10 +0000 (07:16 +0000)
question/type/multianswer/questiontype.php

index 01afd5263811a3dc257465921dcb74bc9bf5e98c..913d645343100c1ea284eac23df98e23cb4a9119 100644 (file)
@@ -59,7 +59,7 @@ class embedded_cloze_qtype extends default_questiontype {
         // will also create difficulties if questiontype specific tables reference the id.
         
         // First we get all the existing wrapped questions
-        if (!$oldwrappedids = get_field('question_multianswers', 'sequence', 'question', $question->id)) {
+        if (!$oldwrappedids = get_field('question_multianswer', 'sequence', 'question', $question->id)) {
             $oldwrappedids = array();
         } else {
             $oldwrappedids = explode(',', $oldwrappedids);