MDL-38741 qtype_calculate: fix missing setType
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user