From 8dea36bd8f4de9f40ee177acd4b78454ad98b5c4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 5 Aug 2018 11:02:36 +0200 Subject: [PATCH] We shouldn't cascade this deletion as well (#5558) --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index f2b227a0da..3fe69fb127 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1065,7 +1065,7 @@ class Item extends BaseObject // When the permission set will be used in photo and events as well, // this query here needs to be extended. if (!empty($item['psid']) && !DBA::exists('item', ['psid' => $item['psid'], 'deleted' => false])) { - DBA::delete('permissionset', ['id' => $item['psid']]); + DBA::delete('permissionset', ['id' => $item['psid']], ['cascade' => false]); } // If it's the parent of a comment thread, kill all the kids -- 2.39.5