From 26d67aecdf281f661bbe1cd062e0a0a69c2b0de8 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Fri, 7 Nov 2014 09:54:43 -0500 Subject: [PATCH] MDL-48042 Questions: Reset Calculated qtype comments on datasets Reset back the modifications of Calculated qtype comments on datasets done by MDL-47224 Signed-off-by: Pierre Pichet --- question/type/calculated/questiontype.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 70b21217e50..18d945bbf9a 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -1082,17 +1082,6 @@ class qtype_calculated extends question_type { $ans = new qtype_numerical_answer(0, $ansvalue, 0, '', 0, $answer->tolerance); $ans->tolerancetype = $answer->tolerancetype; list($answer->min, $answer->max) = $ans->get_tolerance_interval($answer); - - $formattedmin = qtype_calculated_calculate_answer( - $answer->min, $data, $answer->tolerance, - $answer->tolerancetype, $answer->correctanswerlength, - $answer->correctanswerformat, $unit); - $answer->min = $formattedmin->answer; - $formattedmax = qtype_calculated_calculate_answer( - $answer->max, $data, $answer->tolerance, - $answer->tolerancetype, $answer->correctanswerlength, - $answer->correctanswerformat, $unit); - $answer->max = $formattedmax->answer; } if ($answer->min === '') { // This should mean that something is wrong.