Commit 1f9bd20b authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Delete records from the user watchlist for a community when the community

is deleted
parent f54ee484
......@@ -42,6 +42,7 @@ if ($action == 'delete') {
json_reply('local', get_string('cantdeletecommunitydontown'));
delete_records('usr_watchlist_community', 'community', $id);
delete_records('view_access_community', 'community', $id);
delete_records('community_member_invite', 'community', $id);
delete_records('community_member_request', 'community', $id);
Supports Markdown
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