MDL-36570 Added missing calculatedmulti fields

This commit is contained in:
Colin Chambers 2013-04-04 11:17:33 +01:00
parent c7218aef8d
commit c3f21ec516

View file

@ -82,9 +82,8 @@ class qtype_calculatedmulti_edit_form extends question_edit_form {
$mform->setType('answer', PARAM_NOTAGS);
$addrepeated = array();
$addrepeated[] = $mform->createElement('hidden', 'tolerance');
$addrepeated[] = $mform->createElement('hidden', 'tolerancetype', 1);
$repeated[] = $mform->createElement('hidden', 'tolerance');
$repeated[] = $mform->createElement('hidden', 'tolerancetype', 1);
$repeatedoptions['tolerance']['type'] = PARAM_FLOAT;
$repeatedoptions['tolerance']['default'] = 0.01;