Permalink
Browse files

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

  • Loading branch information...
1 parent efc9feb commit be47011d3cb547de42228e2871d466b869ceaa06 @tlock tlock committed with danpoltawski Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit be47011

Please sign in to comment.