MDL-38711 qtype_multianswer: missing setType param
[moodle.git] / question / type / multianswer / edit_multianswer_form.php
index 7dadb50..cd792f7 100644 (file)
@@ -251,6 +251,7 @@ class qtype_multianswer_edit_form extends question_edit_form {
             $mform->setDefault('confirm', 0);
         } else {
             $mform->addElement('hidden', 'confirm', 0);
+            $mform->setType('confirm', PARAM_BOOL);
         }
 
         $this->add_interactive_settings(true, true);