mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Delete backup records on course delete. MDL-8314
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
c29b897b23
commit
d148c0ed5c
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user