Commit 7a8a32bf authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1852584: delete a group collection if already copied to existing users

switched order of deletion of records
because of foreign key constraint violation

behatnotneeded

Change-Id: I7eaed8a6388a7c51272bc21dfe13e51ae0207077
parent 2d14b440
......@@ -156,8 +156,8 @@ class Collection {
if (is_plugin_active('lti', 'module')) {
delete_records('lti_assessment_submission', 'collectionid', $this->id);
}
delete_records('collection','id',$this->id);
delete_records('existingcopy', 'collection', $this->id);
delete_records('collection', 'id', $this->id);
// Delete any submission history
delete_records('module_assessmentreport_history', 'event', 'collection', 'itemid', $this->id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment