@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

When destroying Calendar events, destroy invitees and notifications

Summary: Fixes T12395.

Test Plan: Ran `bin/remove destroy E... --trace`, saw invitee and notification destruction.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12395

Differential Revision: https://secure.phabricator.com/D17555

+15 -1
+15 -1
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 1343 1343 PhabricatorDestructionEngine $engine) { 1344 1344 1345 1345 $this->openTransaction(); 1346 - $this->delete(); 1346 + $invitees = id(new PhabricatorCalendarEventInvitee())->loadAllWhere( 1347 + 'eventPHID = %s', 1348 + $this->getPHID()); 1349 + foreach ($invitees as $invitee) { 1350 + $invitee->delete(); 1351 + } 1352 + 1353 + $notifications = id(new PhabricatorCalendarNotification())->loadAllWhere( 1354 + 'eventPHID = %s', 1355 + $this->getPHID()); 1356 + foreach ($notifications as $notification) { 1357 + $notification->delete(); 1358 + } 1359 + 1360 + $this->delete(); 1347 1361 $this->saveTransaction(); 1348 1362 } 1349 1363