]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed true/false bug due to new 'correctanswer' field.
authorthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 15:16:20 +0000 (15:16 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 15:16:20 +0000 (15:16 +0000)
question/format/blackboard/format.php

index ac09fa21afce0ed6e3d53250e0c0a9c0f244fdcf..c9a87f8cf21a6926addb2b76016cca9760d38eac 100644 (file)
@@ -122,6 +122,7 @@ function process_tf($xml, &$questions) {
             $question->feedbacktrue = addslashes(trim(@$thisquestion["#"]["GRADABLE"][0]["#"]["FEEDBACK_WHEN_INCORRECT"][0]["#"]));
             $question->feedbackfalse = addslashes(trim(@$thisquestion["#"]["GRADABLE"][0]["#"]["FEEDBACK_WHEN_CORRECT"][0]["#"]));
         }
+        $question->correctanswer = $question->answer;
         $questions[] = $question;
       }
 }