MDL-27937 Calculated tolerance field should have the label Tolerance +-

This commit is contained in:
Tim Hunt
2011-06-22 19:49:39 +01:00
parent 3552484b91
commit eb624cf7e0
@@ -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();