Merge branch 'MDL-54797_31' of git://github.com/aolley/moodle into MOODLE_31_STABLE

This commit is contained in:
Andrew Nicols
2016-06-14 13:27:10 +08:00
+1
View File
@@ -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.