Permalink
Browse files

Delete backup records on course delete. MDL-8314

  • Loading branch information...
1 parent 88cd5d6 commit ad8c93de3ea604ae046917a2cead325942bc3203 stronk7 committed Feb 9, 2007
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/moodlelib.php
View
@@ -3253,7 +3253,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)) {

0 comments on commit ad8c93d

Please sign in to comment.