Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-42548 quiz review: don't show grade for non-finished attempts.

Now we show the attempt state separately, so there is no need to show
Grade: Attempt still in progress - especially since we were showing that
for abandoned and overdue attempts which is just wrong.
  • Loading branch information...
commit 0bf397b20c06f9d5dd9dfd504a9bb712a4994ac5 1 parent 67d4599
@timhunt timhunt authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/quiz/review.php
View
5 mod/quiz/review.php
@@ -187,10 +187,7 @@
if ($options->marks >= question_display_options::MARK_AND_MAX && quiz_has_grades($quiz)) {
if ($attempt->state != quiz_attempt::FINISHED) {
- $summarydata['grade'] = array(
- 'title' => get_string('grade', 'quiz'),
- 'content' => get_string('attemptstillinprogress', 'quiz'),
- );
+ // Cannot display grade.
} else if (is_null($grade)) {
$summarydata['grade'] = array(
Please sign in to comment.
Something went wrong with that request. Please try again.