From 7179def064a3881cb42f79e1ec2e0b8155b55f7b Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 15 May 2015 11:54:51 -0700 Subject: [PATCH] Clean up a missed access to Calendar status Summary: Ref T8183. The list view still used this field to choose a red/orange bar color. Test Plan: Viewed event list view. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8183 Differential Revision: https://secure.phabricator.com/D12857 --- .../query/PhabricatorCalendarEventSearchEngine.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php index 3e020895f3..7added162f 100644 --- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php +++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php @@ -303,17 +303,12 @@ final class PhabricatorCalendarEventSearchEngine foreach ($events as $event) { $href = '/E'.$event->getID(); $from = phabricator_datetime($event->getDateFrom(), $viewer); - $to = phabricator_datetime($event->getDateTo(), $viewer); + $to = phabricator_datetime($event->getDateTo(), $viewer); $creator_handle = $handles[$event->getUserPHID()]; - $color = ($event->getStatus() == PhabricatorCalendarEvent::STATUS_AWAY) - ? 'red' - : 'yellow'; - $item = id(new PHUIObjectItemView()) ->setHeader($event->getName()) ->setHref($href) - ->setBarColor($color) ->addByline(pht('Creator: %s', $creator_handle->renderLink())) ->addAttribute(pht('From %s to %s', $from, $to)) ->addAttribute(id(new PhutilUTF8StringTruncator())