Merge branch 'MDL-38792' of https://github.com/ppichet/moodle
[moodle.git] / question / type / calculated / edit_calculated_form.php
index 0778c7b..484aba0 100644 (file)
@@ -130,6 +130,7 @@ class qtype_calculated_edit_form extends qtype_numerical_edit_form {
         $mform->addElement('hidden', 'initialcategory', 1);
         $mform->addElement('hidden', 'reload', 1);
         $mform->setType('initialcategory', PARAM_INT);
+        $mform->setType('reload', PARAM_BOOL);
         $html2 = $this->qtypeobj->print_dataset_definitions_category($this->question);
         $mform->insertElementBefore(
                 $mform->createElement('static', 'listcategory', $label, $html2), 'name');