projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2b134
)
We shouldn't cascade this deletion as well (#5558)
author
Michael Vogel
<icarus@dabo.de>
Sun, 5 Aug 2018 09:02:36 +0000
(11:02 +0200)
committer
Hypolite Petovan
<mrpetovan@eml.cc>
Sun, 5 Aug 2018 09:02:36 +0000
(11:02 +0200)
src/Model/Item.php
patch
|
blob
|
history
diff --git
a/src/Model/Item.php
b/src/Model/Item.php
index f2b227a0dabded5ce3b38b2580b76443f7056894..3fe69fb12793dbce4a62710d6ccd0ec5ec1ba3d1 100644
(file)
--- 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