From fa5cb18b74116415ec738383b47ecdb647155f34 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 25 Apr 2007 09:43:37 +0000 Subject: [PATCH] MDL-9577: Fixing change of name (answer => correctanswer) for true/false questions. --- question/format/examview/format.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/format/examview/format.php b/question/format/examview/format.php index 31952580b..32bf0e573 100755 --- a/question/format/examview/format.php +++ b/question/format/examview/format.php @@ -203,6 +203,7 @@ class qformat_examview extends qformat_default { $choices = array('T' => 1, 'Y' => 1, 'F' => 0, 'N' => 0 ); $answer = trim($qrec['answer'][0]['#']); $question->answer = $choices[$answer]; + $question->correctanswer = $question->answer; if ($question->answer == 1) { $question->feedbacktrue = 'Correct'; $question->feedbackfalse = 'Incorrect'; -- 2.11.4.GIT