Browse Source

We shouldn't cascade this deletion as well (#5558)

pull/5569/head
Michael Vogel 3 years ago
committed by Hypolite Petovan
parent
commit
8dea36bd8f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Model/Item.php

+ 1
- 1
src/Model/Item.php View File

@ -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


Loading…
Cancel
Save