From eb624cf7e0e080b5cfbfa033acfcd1ef3dcd41eb Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 22 Jun 2011 19:49:39 +0100 Subject: [PATCH] MDL-27937 Calculated tolerance field should have the label Tolerance +- --- question/type/calculated/edit_calculated_form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/question/type/calculated/edit_calculated_form.php b/question/type/calculated/edit_calculated_form.php index ccab22deb34..9fb391ca69b 100644 --- a/question/type/calculated/edit_calculated_form.php +++ b/question/type/calculated/edit_calculated_form.php @@ -76,7 +76,9 @@ class qtype_calculated_edit_form extends qtype_numerical_edit_form { $repeated = parent::get_per_answer_fields($mform, $label, $gradeoptions, $repeatedoptions, $answersoption); + // 1 is the answer. 3 is tolerance. $repeated[1]->setLabel(get_string('correctanswerformula', 'qtype_calculated') . '='); + $repeated[3]->setLabel(get_string('tolerance', 'qtype_calculated') . '='); $repeatedoptions['tolerance']['default'] = 0.01; $addrepeated = array();