MDL-38741 qtype_truefalse: fix missing setType call
authorDan Poltawski <dan@moodle.com>
Thu, 4 Apr 2013 03:59:35 +0000 (11:59 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 4 Apr 2013 08:32:46 +0000 (16:32 +0800)
question/type/truefalse/edit_truefalse_form.php

index 9e6f930..3af9034 100644 (file)
@@ -60,6 +60,7 @@ class qtype_truefalse_edit_form extends question_edit_form {
                 get_string('settingsformultipletries', 'question'));
 
         $mform->addElement('hidden', 'penalty', 1);
+        $mform->setType('penalty', PARAM_FLOAT);
 
         $mform->addElement('static', 'penaltymessage',
                 get_string('penaltyforeachincorrecttry', 'question'), 1);