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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user