mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380
This commit is contained in:
parent
591212f69d
commit
d115d8c736
18 changed files with 70 additions and 46 deletions
|
@ -31,7 +31,7 @@
|
|||
error("The course module for the quiz with id $quiz->id is missing");
|
||||
}
|
||||
|
||||
if (!count_records('quiz_newest_states', 'attemptid', $attempt->id)) {
|
||||
if (!count_records('quiz_newest_states', 'attemptid', $attempt->uniqueid)) {
|
||||
// this question has not yet been upgraded to the new model
|
||||
quiz_upgrade_states($attempt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue