Merge branch 'MDL-38792' of https://github.com/ppichet/moodle
[moodle.git] / question / type / calculatedmulti / edit_calculatedmulti_form.php
index 57b6742..eee479f 100644 (file)
@@ -86,6 +86,7 @@ class qtype_calculatedmulti_edit_form extends question_edit_form {
         $repeated[] = $mform->createElement('hidden', 'tolerancetype', 1);
         $repeatedoptions['tolerance']['type'] = PARAM_FLOAT;
         $repeatedoptions['tolerance']['default'] = 0.01;
+        $repeatedoptions['tolerancetype']['type'] = PARAM_INT;
 
         // Create display group.
         $answerdisplay = array();
@@ -115,6 +116,7 @@ class qtype_calculatedmulti_edit_form extends question_edit_form {
         $mform->addElement('hidden', 'initialcategory', 1);
         $mform->addElement('hidden', 'reload', 1);
         $mform->setType('initialcategory', PARAM_INT);
+        $mform->setType('reload', PARAM_BOOL);
 
         $html2 = '';
         $mform->insertElementBefore(