Permalink
Browse files

MDL-38741 qtype_calculatedmulti: fix missing setType

  • Loading branch information...
danpoltawski committed Apr 4, 2013
1 parent 1e988d2 commit dfd89b0bb9446486134c68d16558768a6ff8fbbb
Showing with 2 additions and 0 deletions.
  1. +2 −0 question/type/calculatedmulti/edit_calculatedmulti_form.php
@@ -84,6 +84,7 @@ public function get_per_answer_fields($mform, $label, $gradeoptions,
$addrepeated[] = $mform->createElement('hidden', 'tolerancetype', 1);
$repeatedoptions['tolerance']['type'] = PARAM_FLOAT;
$repeatedoptions['tolerance']['default'] = 0.01;
$repeatedoptions['tolerancetype']['type'] = PARAM_INT;
$addrepeated[] = $mform->createElement('select', 'correctanswerlength',
get_string('correctanswershows', 'qtype_calculated'), range(0, 9));
@@ -107,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 = '';
$mform->insertElementBefore(

0 comments on commit dfd89b0

Please sign in to comment.