Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'MDL-64878-master' of git://github.com/damyon/moodle
[moodle.git]
/
mod
/
quiz
/
lib.php
diff --git
a/mod/quiz/lib.php
b/mod/quiz/lib.php
index
6dd7d88
..
e04459e
100644
(file)
--- a/
mod/quiz/lib.php
+++ b/
mod/quiz/lib.php
@@
-203,6
+203,7
@@
function quiz_delete_instance($id) {
}
quiz_grade_item_delete($quiz);
+ // We must delete the module record after we delete the grade item.
$DB->delete_records('quiz', array('id' => $quiz->id));
return true;