MDL-52806 quiz manual grading: show right answer for auto-graded Qs

This commit is contained in:
Tim Hunt 2016-02-06 08:31:15 +00:00
parent 83a951023e
commit a10bd0d9a8

View 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;