From e03a29ee5138c8aae51633a3f71f18af0ad8351c Mon Sep 17 00:00:00 2001 From: Nigel McNie Date: Mon, 30 Apr 2007 14:18:56 +1200 Subject: [PATCH] Delete records from the user watchlist for a community when the community is deleted --- htdocs/contacts/communities/owned.json.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/contacts/communities/owned.json.php b/htdocs/contacts/communities/owned.json.php index 35772871..74eed62c 100644 --- a/htdocs/contacts/communities/owned.json.php +++ b/htdocs/contacts/communities/owned.json.php @@ -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); -- GitLab