Page MenuHomePhabricator

D15207.id36713.diff
No OneTemporary

D15207.id36713.diff

diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
@@ -266,7 +266,6 @@
$list = new PHUIObjectItemListView();
foreach ($events as $event) {
- $duration = '';
$event_date_info = $this->getEventDateLabel($event);
$creator_handle = $handles[$event->getUserPHID()];
$attendees = array();
@@ -275,18 +274,6 @@
$attendees[] = $invitee->getInviteePHID();
}
- $attendees = pht(
- 'Attending: %s',
- $viewer->renderHandleList($attendees)
- ->setAsInline(1)
- ->render());
-
- if (strlen($event->getDuration()) > 0) {
- $duration = pht(
- 'Duration: %s',
- $event->getDuration());
- }
-
if ($event->getIsGhostEvent()) {
$title_text = $event->getMonogram()
.' ('
@@ -302,9 +289,25 @@
->setObject($event)
->setHeader($title_text)
->setHref($event->getURI())
- ->addAttribute($event_date_info)
- ->addAttribute($attendees)
- ->addIcon('none', $duration);
+ ->addAttribute($event_date_info);
+
+ if ($attendees) {
+ $attending = pht(
+ 'Attending: %s',
+ $viewer->renderHandleList($attendees)
+ ->setAsInline(1)
+ ->render());
+
+ $item->addAttribute($attending);
+ }
+
+ if (strlen($event->getDuration()) > 0) {
+ $duration = pht(
+ 'Duration: %s',
+ $event->getDuration());
+
+ $item->addIcon('none', $duration);
+ }
$list->addItem($item);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 17, 2:34 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390214
Default Alt Text
D15207.id36713.diff (1 KB)

Event Timeline