Permalink
Browse files

:MDL-9577

Added 'correctanswer' field for true/false. Somebody changed this at some point
in the underlying questiontype class.
  • Loading branch information...
1 parent d42dbcc commit f9b27a7f86e76151b829c39fa9e7b61bf37e1444 thepurpleblob committed Apr 25, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 question/format/examview/format.php
@@ -199,6 +199,7 @@ function parse_tf_yn($qrec, $question)
$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';

0 comments on commit f9b27a7

Please sign in to comment.