Skip to content

Commit

Permalink
MDL-66600 quiz manual grading: show any automated grading and feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Kassaei committed Feb 15, 2021
1 parent 41037ef commit 4a57188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions mod/quiz/report/grading/report.php
Expand Up @@ -445,8 +445,7 @@ protected function display_grading_interface($slot, $questionid, $grade,
$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;

Expand Down
4 changes: 4 additions & 0 deletions mod/quiz/report/grading/tests/behat/grading.feature
Expand Up @@ -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"
Expand Down

0 comments on commit 4a57188

Please sign in to comment.