Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6aac11
)
MDL-34905 quiz: missing global $DB;
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 15 Aug 2012 09:25:25 +0000
(10:25 +0100)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 15 Aug 2012 09:32:56 +0000
(10:32 +0100)
This code normally only runs when JS is disabled, which is why this was
not noticed before.
mod/quiz/attemptlib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/quiz/attemptlib.php
b/mod/quiz/attemptlib.php
index
a4e70fa
..
7018487
100644
(file)
--- a/
mod/quiz/attemptlib.php
+++ b/
mod/quiz/attemptlib.php
@@
-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);