Commit e03a29ee authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

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

is deleted
parent e5b95621
......@@ -42,6 +42,7 @@ if ($action == 'delete') {
json_reply('local', get_string('cantdeletecommunitydontown'));
}
db_begin();
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);
......
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