From: pichetp Date: Sat, 3 Mar 2007 04:43:50 +0000 (+0000) Subject: merge from 18_STABLE MDL-8475 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fe881becb2c32fe28f689778b074d59e42d15f86;p=moodle.git merge from 18_STABLE MDL-8475 --- diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index dd7864c05f..65db4bc332 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -114,7 +114,7 @@ class question_numerical_qtype extends question_shortanswer_qtype { // Insert all the new answers foreach ($question->answer as $key => $dataanswer) { - if ($dataanswer != '' || trim($question->feedback[$key])) { + if (!isset( $question->deleteanswer[$key] ) && !( trim($dataanswer) == 0 && $question->fraction[$key]== 0 &&trim($question->feedback[$key])=='')) { $answer = new stdClass; $answer->question = $question->id; if (trim($dataanswer) == '*') {