Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | switch ($xaction->getTransactionType()) { | ||||
foreach ($all as $phid) { | foreach ($all as $phid) { | ||||
$is_old = isset($invitees[$phid]); | $is_old = isset($invitees[$phid]); | ||||
$is_new = isset($new[$phid]); | $is_new = isset($new[$phid]); | ||||
if ($is_old && !$is_new) { | if ($is_old && !$is_new) { | ||||
$map[$phid] = $status_uninvited; | $map[$phid] = $status_uninvited; | ||||
} else if (!$is_old && $is_new) { | } else if (!$is_old && $is_new) { | ||||
$map[$phid] = $status_invited; | $map[$phid] = $status_invited; | ||||
} else { | |||||
$map[$phid] = $invitees[$phid]->getStatus(); | |||||
} | } | ||||
} | } | ||||
// If we're creating this event and the actor is inviting themselves, | // If we're creating this event and the actor is inviting themselves, | ||||
// mark them as attending. | // mark them as attending. | ||||
if ($this->getIsNewObject()) { | if ($this->getIsNewObject()) { | ||||
$acting_phid = $this->getActingAsPHID(); | $acting_phid = $this->getActingAsPHID(); | ||||
if (isset($map[$acting_phid])) { | if (isset($map[$acting_phid])) { | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |