mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-19 03:01:11 +01:00
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
This commit is contained in:
parent
27c75357be
commit
7179def064
1 changed files with 1 additions and 6 deletions
|
@ -303,17 +303,12 @@ final class PhabricatorCalendarEventSearchEngine
|
||||||
foreach ($events as $event) {
|
foreach ($events as $event) {
|
||||||
$href = '/E'.$event->getID();
|
$href = '/E'.$event->getID();
|
||||||
$from = phabricator_datetime($event->getDateFrom(), $viewer);
|
$from = phabricator_datetime($event->getDateFrom(), $viewer);
|
||||||
$to = phabricator_datetime($event->getDateTo(), $viewer);
|
$to = phabricator_datetime($event->getDateTo(), $viewer);
|
||||||
$creator_handle = $handles[$event->getUserPHID()];
|
$creator_handle = $handles[$event->getUserPHID()];
|
||||||
|
|
||||||
$color = ($event->getStatus() == PhabricatorCalendarEvent::STATUS_AWAY)
|
|
||||||
? 'red'
|
|
||||||
: 'yellow';
|
|
||||||
|
|
||||||
$item = id(new PHUIObjectItemView())
|
$item = id(new PHUIObjectItemView())
|
||||||
->setHeader($event->getName())
|
->setHeader($event->getName())
|
||||||
->setHref($href)
|
->setHref($href)
|
||||||
->setBarColor($color)
|
|
||||||
->addByline(pht('Creator: %s', $creator_handle->renderLink()))
|
->addByline(pht('Creator: %s', $creator_handle->renderLink()))
|
||||||
->addAttribute(pht('From %s to %s', $from, $to))
|
->addAttribute(pht('From %s to %s', $from, $to))
|
||||||
->addAttribute(id(new PhutilUTF8StringTruncator())
|
->addAttribute(id(new PhutilUTF8StringTruncator())
|
||||||
|
|
Loading…
Reference in a new issue