MDL-66600 quiz manual grading: show any automated grading and feedback

This commit is contained in:
Mahmoud Kassaei
2021-02-15 08:23:40 +00:00
parent a2fda1289f
commit 6b93f2cb9d
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -445,8 +445,7 @@ class quiz_grading_report extends quiz_default_report {
$attempt = $attempts[$qubaid];
$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->generalfeedback = question_display_options::HIDDEN;
$displayoptions->history = question_display_options::HIDDEN;
$displayoptions->manualcomment = question_display_options::EDITABLE;
@@ -57,6 +57,10 @@ Feature: Basic use of the Manual grading report
And I set the field "Order attempts" to "By student ID number"
And I press "Change options"
# General feedback for Short answer 001 displays.
And I should see "That is a bad answer."
And I should see "The correct answer is: frog"
# Adjust the mark for Student1.
And I set the field "Comment" to "I have adjusted your mark to 0.6"
And I set the field "Mark" to "0.6"