Skip to content

Commit

Permalink
MDL-26685 each attempt builds on last did not work when quiz_attemts.…
Browse files Browse the repository at this point in the history
…id and question_attempts.id were not equal.
  • Loading branch information
timhunt committed Mar 5, 2011
1 parent 48fe5c6 commit 4a6f461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/startattempt.php
Expand Up @@ -74,7 +74,7 @@


/// Get number for the next or unfinished attempt /// Get number for the next or unfinished attempt
if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) { if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) {
$lastattemptid = $lastattempt->id; $lastattemptid = $lastattempt->uniqueid;
$attemptnumber = $lastattempt->attempt + 1; $attemptnumber = $lastattempt->attempt + 1;
} else { } else {
$lastattempt = false; $lastattempt = false;
Expand Down

0 comments on commit 4a6f461

Please sign in to comment.