Subject: [PATCH] Patch to test MDL-79130 --- Index: backup/controller/restore_controller.class.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/backup/controller/restore_controller.class.php b/backup/controller/restore_controller.class.php --- a/backup/controller/restore_controller.class.php (revision 37139d4110394a05aef6b8f845d5e6b8c570e3a2) +++ b/backup/controller/restore_controller.class.php (date 1702958988243) @@ -397,6 +397,8 @@ $options['keep_groups_and_groupings'] = $this->get_setting_value('keep_groups_and_groupings'); $options['userid'] = $this->userid; restore_dbops::delete_course_content($this->get_courseid(), $options); + throw new \moodle_exception('test-79130-exception'); + return; } // If this is not a course restore or single activity restore (e.g. duplicate), inform the plan we are not // including all the activities for sure. This will affect any