Delete backup records on course delete. MDL-8314

Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7 2007-02-09 00:13:18 +00:00
parent c29b897b23
commit d148c0ed5c

View File

@ -2993,7 +2993,9 @@ function remove_course_contents($courseid, $showfeedback=true) {
'grade_exceptions' => 'courseid',
'grade_item' => 'courseid',
'grade_letter' => 'courseid',
'grade_preferences' => 'courseid'
'grade_preferences' => 'courseid',
'backup_courses' => 'courseid', // Delete scheduled backup stuff
'backup_log' => 'courseid'
);
foreach ($tablestoclear as $table => $col) {
if (delete_records($table, $col, $course->id)) {