Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14090030
D18803.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18803.diff
View Options
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
@@ -491,11 +491,22 @@
$parent_invitees = $parent->getInvitees();
$stub_invitees = array();
+ // All stubs should inherit the host's status
foreach ($parent_invitees as $invitee) {
+ $host_phid = $parent->getHostPHID();
+ $inviter_phid = $invitee->getInviterPHID();
+ $invitee_phid = $invitee->getInviteePHID();
+
+ if ($host_phid === $invitee_phid) {
+ $status = $invitee->getStatus();
+ } else {
+ $status = PhabricatorCalendarEventInvitee::STATUS_INVITED;
+ }
+
$stub_invitee = id(new PhabricatorCalendarEventInvitee())
- ->setInviteePHID($invitee->getInviteePHID())
- ->setInviterPHID($invitee->getInviterPHID())
- ->setStatus(PhabricatorCalendarEventInvitee::STATUS_INVITED);
+ ->setInviteePHID($inviter_phid)
+ ->setInviterPHID($invitee_phid)
+ ->setStatus($status);
$stub_invitees[] = $stub_invitee;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 3:14 PM (21 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6786210
Default Alt Text
D18803.diff (1 KB)
Attached To
Mode
D18803: Fixes T13026, Makes recurring event stubs inherit host's RSVP status
Attached
Detach File
Event Timeline
Log In to Comment