Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…tempts, not just current.
  • Loading branch information...
commit a14ef47b44ac9dfef75175ddac3c1fa79468ba9f 1 parent 9592f5d
@merrill-oakland merrill-oakland authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/attempt.php
View
2  mod/quiz/attempt.php
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.