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
(from parent 1:
337ee7f
)
Merge branch 'MDL-54797' of git://github.com/aolley/moodle
author
Andrew Nicols
<andrew@nicols.co.uk>
Tue, 14 Jun 2016 05:24:47 +0000
(13:24 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Thu, 16 Jun 2016 08:04:07 +0000
(09:04 +0100)
course/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/course/lib.php
b/course/lib.php
index
dddbf45
..
994b37e
100644
(file)
--- a/
course/lib.php
+++ b/
course/lib.php
@@
-1772,6
+1772,7
@@
function course_delete_module($cmid) {
// very quick on an empty table).
$DB->delete_records('course_modules_completion', array('coursemoduleid' => $cm->id));
$DB->delete_records('course_completion_criteria', array('moduleinstance' => $cm->id,
+ 'course' => $cm->course,
'criteriatype' => COMPLETION_CRITERIA_TYPE_ACTIVITY));
// Delete all tag instances associated with the instance of this module.