MDL-38741 qtype_calculate: fix missing setType

This commit is contained in:
Dan Poltawski
2013-04-04 11:45:11 +08:00
parent d8201d49d8
commit 1e988d262b
@@ -108,6 +108,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');