From 0bf397b20c06f9d5dd9dfd504a9bb712a4994ac5 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 25 Oct 2013 20:08:17 +0100 Subject: [PATCH] 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. --- mod/quiz/review.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mod/quiz/review.php b/mod/quiz/review.php index eacc703e27b..5ef1b947460 100644 --- a/mod/quiz/review.php +++ b/mod/quiz/review.php @@ -187,10 +187,7 @@ $grade = quiz_rescale_grade($attempt->sumgrades, $quiz, false); 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(