Merge branch 'MDL-25823' of git://github.com/rwijaya/moodle
authorSam Hemelryk <sam@moodle.com>
Tue, 8 Nov 2011 00:10:00 +0000 (13:10 +1300)
committerSam Hemelryk <sam@moodle.com>
Tue, 8 Nov 2011 00:10:00 +0000 (13:10 +1300)
mod/lesson/pagetypes/truefalse.php

index db9a15f..7ce13ec 100644 (file)
@@ -95,7 +95,7 @@ class lesson_page_type_truefalse extends lesson_page {
         }
         $result->newpageid = $answer->jumpto;
         $result->response  = format_text($answer->response, $answer->responseformat, $formattextdefoptions);
-        $result->studentanswer = $result->userresponse = $result->response;
+        $result->studentanswer = $result->userresponse = $answer->answer;
         return $result;
     }