Skip to content
Browse files

MDL-26685 each attempt builds on last did not work when quiz_attemts.…

…id and question_attempts.id were not equal.
  • Loading branch information...
1 parent 48fe5c6 commit 4a6f461830bf1d671a7a90c64b010aba280ac599 @timhunt timhunt committed Mar 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/startattempt.php
View
2 mod/quiz/startattempt.php
@@ -74,7 +74,7 @@
/// Get number for the next or unfinished attempt
if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) {
- $lastattemptid = $lastattempt->id;
+ $lastattemptid = $lastattempt->uniqueid;
$attemptnumber = $lastattempt->attempt + 1;
} else {
$lastattempt = false;

0 comments on commit 4a6f461

Please sign in to comment.
Something went wrong with that request. Please try again.