mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34905 quiz: missing global $DB;
This code normally only runs when JS is disabled, which is why this was not noticed before.
This commit is contained in:
parent
87e9331d93
commit
4be550c57d
@ -1335,6 +1335,8 @@ class quiz_attempt {
|
||||
* flagged state was changed in the request.
|
||||
*/
|
||||
public function save_question_flags() {
|
||||
global $DB;
|
||||
|
||||
$transaction = $DB->start_delegated_transaction();
|
||||
$this->quba->update_question_flags();
|
||||
question_engine::save_questions_usage_by_activity($this->quba);
|
||||
|
Loading…
x
Reference in New Issue
Block a user