Permalink
Browse files

MDL-34451 quiz Fixed problem where attempt page is updated for ALL at…

…tempts, not just current.
  • Loading branch information...
merrill-oakland committed Jul 22, 2012
1 parent 9592f5d commit a14ef47b44ac9dfef75175ddac3c1fa79468ba9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/attempt.php
View
@@ -103,7 +103,7 @@
// Prevent out of sequence access.
redirect($attemptobj->start_attempt_url(null, $attemptobj->get_currentpage()));
}
- $DB->set_field('quiz_attempts', 'currentpage', $page);
+ $DB->set_field('quiz_attempts', 'currentpage', $page, array('id' => $attemptid));
}
// Initialise the JavaScript.

0 comments on commit a14ef47

Please sign in to comment.