Fix for distribution of event deletions
This commit is contained in:
parent
5306622225
commit
f84e2e9d93
|
@ -226,7 +226,7 @@ class Event extends BaseObject
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBA::delete('event', ['id' => $event_id]);
|
DBA::delete('event', ['id' => $event_id], ['cascade' => false]);
|
||||||
Logger::log("Deleted event ".$event_id, Logger::DEBUG);
|
Logger::log("Deleted event ".$event_id, Logger::DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1080,9 +1080,11 @@ class Item extends BaseObject
|
||||||
}
|
}
|
||||||
// When the permission set will be used in photo and events as well,
|
// When the permission set will be used in photo and events as well,
|
||||||
// this query here needs to be extended.
|
// this query here needs to be extended.
|
||||||
if (!empty($item['psid']) && !self::exists(['psid' => $item['psid'], 'deleted' => false])) {
|
// Currently deactivated. We need the permission set in the deletion process.
|
||||||
DBA::delete('permissionset', ['id' => $item['psid']], ['cascade' => false]);
|
// This is a reminder to add the removal somewhere else.
|
||||||
}
|
//if (!empty($item['psid']) && !self::exists(['psid' => $item['psid'], 'deleted' => false])) {
|
||||||
|
// DBA::delete('permissionset', ['id' => $item['psid']], ['cascade' => false]);
|
||||||
|
//}
|
||||||
|
|
||||||
// If it's the parent of a comment thread, kill all the kids
|
// If it's the parent of a comment thread, kill all the kids
|
||||||
if ($item['id'] == $item['parent']) {
|
if ($item['id'] == $item['parent']) {
|
||||||
|
|
Loading…
Reference in a new issue