Merge branch 'MDL-52806' of git://github.com/timhunt/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 22 Feb 2016 22:04:43 +0000 (23:04 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 22 Feb 2016 22:04:43 +0000 (23:04 +0100)
mod/quiz/report/grading/report.php

index 138a2ec..3b78821 100644 (file)
@@ -409,6 +409,7 @@ class quiz_grading_report extends quiz_default_report {
             $quba = question_engine::load_questions_usage_by_activity($qubaid);
             $displayoptions = quiz_get_review_options($this->quiz, $attempt, $this->context);
             $displayoptions->hide_all_feedback();
+            $displayoptions->rightanswer = question_display_options::VISIBLE;
             $displayoptions->history = question_display_options::HIDDEN;
             $displayoptions->manualcomment = question_display_options::EDITABLE;