Permalink
Browse files

MDL-36570 Added missing calculatedmulti fields

  • Loading branch information...
1 parent c7218ae commit c3f21ec5161489c89dc359431ef5de5c9c04fd26 Colin Chambers committed Apr 4, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 question/type/calculatedmulti/edit_calculatedmulti_form.php
View
5 question/type/calculatedmulti/edit_calculatedmulti_form.php
@@ -82,9 +82,8 @@ public function get_per_answer_fields($mform, $label, $gradeoptions,
$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;

0 comments on commit c3f21ec

Please sign in to comment.