1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 06:50:55 +01:00

Calendar list objects that are ghost events should link to a ghost event, not the parent

Summary: Fixes T9034, Calendar list objects that are ghost events should link to a ghost event, not the parent.

Test Plan: Open All Events in Calendar, make sure ghost objects open the ghost instance, not the parent instance.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T9034

Differential Revision: https://secure.phabricator.com/D13764
This commit is contained in:
lkassianik 2015-08-03 07:01:42 -07:00
parent 3b0ca7b769
commit f0269d696c

View file

@ -287,10 +287,21 @@ final class PhabricatorCalendarEventSearchEngine
$event->getDuration()); $event->getDuration());
} }
if ($event->getIsGhostEvent()) {
$title_text = $event->getMonogram()
.' ('
.$event->getSequenceIndex()
.'): '
.$event->getName();
} else {
$title_text = $event->getMonogram().': '.$event->getName();
}
$item = id(new PHUIObjectItemView()) $item = id(new PHUIObjectItemView())
->setUser($viewer) ->setUser($viewer)
->setObject($event) ->setObject($event)
->setHeader($viewer->renderHandle($event->getPHID())->render()) ->setHeader($title_text)
->setHref($event->getURI())
->addAttribute($event_date_info) ->addAttribute($event_date_info)
->addAttribute($attendees) ->addAttribute($attendees)
->addIcon('none', $duration); ->addIcon('none', $duration);