mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-3030 quiz overdue handling: test state, not timefinish where applicable.
This commit is contained in:
parent
3e77b60f36
commit
be18f589e2
10 changed files with 60 additions and 42 deletions
|
@ -184,7 +184,7 @@ if (!empty($overtime)) {
|
|||
$grade = quiz_rescale_grade($attempt->sumgrades, $quiz, false);
|
||||
if ($options->marks >= question_display_options::MARK_AND_MAX && quiz_has_grades($quiz)) {
|
||||
|
||||
if (!$attempt->timefinish) {
|
||||
if ($attempt->state != quiz_attempt::FINISHED) {
|
||||
$summarydata['grade'] = array(
|
||||
'title' => get_string('grade', 'quiz'),
|
||||
'content' => get_string('attemptstillinprogress', 'quiz'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue