Merge branch 'MDL-34451_23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE

This commit is contained in:
Dan Poltawski 2012-07-23 09:22:48 +08:00
commit fd59a1780b

View file

@ -103,7 +103,7 @@ if ($attemptobj->get_currentpage() != $page) {
// 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.