]> git.mjollnir.org Git - moodle.git/commitdiff
Bug 2951 - correct PARAM_ types for answers to multichoice and shortanswer questions...
authortjhunt <tjhunt>
Wed, 4 Apr 2007 16:51:10 +0000 (16:51 +0000)
committertjhunt <tjhunt>
Wed, 4 Apr 2007 16:51:10 +0000 (16:51 +0000)
question/type/multichoice/edit_multichoice_form.php
question/type/shortanswer/edit_shortanswer_form.php

index 49d52633b41507e7421379b7f698343d10e03fa3..1040217dd881ed38af4fd213d7ecabb427b5a11e 100644 (file)
@@ -47,7 +47,7 @@ class question_edit_multichoice_form extends question_edit_form {
                             QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD);
         $repeatedoptions = array();
         $repeatedoptions['fraction']['default'] = 0;
-        $mform->setType('answer', PARAM_NOTAGS);
+        $mform->setType('answer', PARAM_RAW);
         $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmorechoiceblanks', 'qtype_multichoice'));
 
         $mform->addElement('header', 'overallfeedbackhdr', get_string('overallfeedback', 'qtype_multichoice'));
index 4af58e7722e7d80f30df57b6a525e00debf5f735..5f0f648172ffe89de94eb7ecb01d6ff79565f1a7 100644 (file)
@@ -41,7 +41,7 @@ class question_edit_shortanswer_form extends question_edit_form {
         $repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + QUESTION_NUMANS_ADD))?
                             QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD);
         $repeatedoptions = array();
-        $mform->setType('answer', PARAM_NOTAGS);
+        $mform->setType('answer', PARAM_RAW);
         $repeatedoptions['fraction']['default'] = 0;
         $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmoreanswerblanks', 'qtype_shortanswer'));