MDL-38741 qtype_calculatesimple: missing setType call
authorDan Poltawski <dan@moodle.com>
Thu, 4 Apr 2013 03:57:46 +0000 (11:57 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 4 Apr 2013 03:57:46 +0000 (11:57 +0800)
question/type/calculatedsimple/edit_calculatedsimple_form.php

index e12a711..cd2f9e5 100644 (file)
@@ -292,6 +292,7 @@ class qtype_calculatedsimple_edit_form extends qtype_calculated_edit_form {
         $label = get_string("sharedwildcards", "qtype_calculated");
         $mform->addElement('hidden', 'synchronize', 0);
         $mform->addElement('hidden', 'initialcategory', 1);
+        $mform->setType('synchronize', PARAM_BOOL);
         $mform->setType('initialcategory', PARAM_INT);
         $mform->addElement('hidden', 'reload', 1);
         $mform->setType('reload', PARAM_INT);