mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
Make sure that the newgraded field always points to a valid state.
This commit is contained in:
parent
2e9b6d157c
commit
28a8ec9148
@ -1035,6 +1035,11 @@ function quiz_upgrade($oldversion) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($oldversion < 2006043000) {
|
||||
// The newgraded field must always point to a valid state
|
||||
modify_database("","UPDATE prefix_question_sessions SET newgraded = newest where newgraded = '0'");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1206,6 +1206,11 @@ function quiz_upgrade($oldversion) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($oldversion < 2006043000) {
|
||||
// The newgraded field must always point to a valid state
|
||||
modify_database("","UPDATE prefix_question_sessions SET newgraded = newest where newgraded = '0'");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user