Page MenuHomePhabricator

D17555.id42222.diff
No OneTemporary

D17555.id42222.diff

diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
--- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php
+++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
@@ -1343,7 +1343,21 @@
PhabricatorDestructionEngine $engine) {
$this->openTransaction();
- $this->delete();
+ $invitees = id(new PhabricatorCalendarEventInvitee())->loadAllWhere(
+ 'eventPHID = %s',
+ $this->getPHID());
+ foreach ($invitees as $invitee) {
+ $invitee->delete();
+ }
+
+ $notifications = id(new PhabricatorCalendarNotification())->loadAllWhere(
+ 'eventPHID = %s',
+ $this->getPHID());
+ foreach ($notifications as $notification) {
+ $notification->delete();
+ }
+
+ $this->delete();
$this->saveTransaction();
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 7:45 AM (2 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223229
Default Alt Text
D17555.id42222.diff (909 B)

Event Timeline