From 4d01ada343e132f121a9c1ed487bb1315ccc6605 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 17 May 2003 03:02:59 +0000 Subject: [PATCH] More on Bug 427_ on second thoughts it's better this way, now at least the true/false entries get updated every time the question is updated. --- mod/quiz/lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 8c19661049..4489242640 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -1618,7 +1618,7 @@ function quiz_save_question_options($question) { } if ($true = array_shift($oldanswers)) { // Existing answer, so reuse it - $true->answer = ""; // We will display this in the user's language later + $true->answer = get_string("true", "quiz"); $true->fraction = $question->answer; $true->feedback = $question->feedbacktrue; if (!update_record("quiz_answers", $true)) { @@ -1627,7 +1627,7 @@ function quiz_save_question_options($question) { } } else { unset($true); - $true->answer = ""; // We will display this in the user's language later + $true->answer = get_string("true", "quiz"); $true->question = $question->id; $true->fraction = $question->answer; $true->feedback = $question->feedbacktrue; @@ -1638,7 +1638,7 @@ function quiz_save_question_options($question) { } if ($false = array_shift($oldanswers)) { // Existing answer, so reuse it - $false->answer = ""; // We will display this in the user's language later + $false->answer = get_string("false", "quiz"); $false->fraction = 1 - (int)$question->answer; $false->feedback = $question->feedbackfalse; if (!update_record("quiz_answers", $false)) { @@ -1647,7 +1647,7 @@ function quiz_save_question_options($question) { } } else { unset($false); - $false->answer = ""; // We will display this in the user's language later + $false->answer = get_string("false", "quiz"); $false->question = $question->id; $false->fraction = 1 - (int)$question->answer; $false->feedback = $question->feedbackfalse; -- 2.39.5