Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35868: quiz: Use correct attemptnumber when a last attempt exists.

  • Loading branch information...
commit 0852e56af68303e8aa392387ce1d326b74b8e912 1 parent 3a509e1
@tlock tlock authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/startattempt.php
View
2  mod/quiz/startattempt.php
@@ -105,7 +105,7 @@
} else {
// Get number for the next or unfinished attempt.
- if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) {
+ if ($lastattempt) {
$attemptnumber = $lastattempt->attempt + 1;
} else {
$lastattempt = false;
Please sign in to comment.
Something went wrong with that request. Please try again.