Page MenuHomePhabricator

D15207.id36712.diff
No OneTemporary

D15207.id36712.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,6 +266,7 @@
$list = new PHUIObjectItemListView();
foreach ($events as $event) {
+ $attending = '';
$duration = '';
$event_date_info = $this->getEventDateLabel($event);
$creator_handle = $handles[$event->getUserPHID()];
@@ -275,11 +276,13 @@
$attendees[] = $invitee->getInviteePHID();
}
- $attendees = pht(
- 'Attending: %s',
- $viewer->renderHandleList($attendees)
- ->setAsInline(1)
- ->render());
+ if (count($attendees) > 0) {
+ $attending = pht(
+ 'Attending: %s',
+ $viewer->renderHandleList($attendees)
+ ->setAsInline(1)
+ ->render());
+ }
if (strlen($event->getDuration()) > 0) {
$duration = pht(
@@ -303,7 +306,7 @@
->setHeader($title_text)
->setHref($event->getURI())
->addAttribute($event_date_info)
- ->addAttribute($attendees)
+ ->addAttribute($attending)
->addIcon('none', $duration);
$list->addItem($item);

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 3:11 AM (3 w, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7681676
Default Alt Text
D15207.id36712.diff (1 KB)

Event Timeline