From 960ac99bf6083496b0077f2aaebfec3210a8b64f Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Fri, 21 May 2010 13:07:58 +0000 Subject: [PATCH] MDL-20296 correcting Correct response display --- question/type/numerical/questiontype.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index 738119db480..fea436ef4e2 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -730,10 +730,8 @@ class question_numerical_qtype extends question_shortanswer_qtype { function get_correct_responses(&$question, &$state) { $correct = parent::get_correct_responses($question, $state); $unit = $this->get_default_numerical_unit($question); - $correct['answer']= $correct['']; if (isset($correct['']) && $correct[''] != '*' && $unit) { $correct[''] .= ' '.$unit->unit; - $correct['unit']= $unit->unit; } return $correct; }