Permalink
Browse files

MDL-38741 qtype_calculate: fix missing setType

  • Loading branch information...
danpoltawski committed Apr 4, 2013
1 parent d8201d4 commit 1e988d262bd8383d8519863dd774e65bb59dc253
Showing with 1 addition and 0 deletions.
  1. +1 −0 question/type/calculated/edit_calculated_form.php
@@ -108,6 +108,7 @@ protected function definition_inner($mform) {
$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');

0 comments on commit 1e988d2

Please sign in to comment.