mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +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:
parent
3b0ca7b769
commit
f0269d696c
1 changed files with 12 additions and 1 deletions
|
@ -287,10 +287,21 @@ final class PhabricatorCalendarEventSearchEngine
|
|||
$event->getDuration());
|
||||
}
|
||||
|
||||
if ($event->getIsGhostEvent()) {
|
||||
$title_text = $event->getMonogram()
|
||||
.' ('
|
||||
.$event->getSequenceIndex()
|
||||
.'): '
|
||||
.$event->getName();
|
||||
} else {
|
||||
$title_text = $event->getMonogram().': '.$event->getName();
|
||||
}
|
||||
|
||||
$item = id(new PHUIObjectItemView())
|
||||
->setUser($viewer)
|
||||
->setObject($event)
|
||||
->setHeader($viewer->renderHandle($event->getPHID())->render())
|
||||
->setHeader($title_text)
|
||||
->setHref($event->getURI())
|
||||
->addAttribute($event_date_info)
|
||||
->addAttribute($attendees)
|
||||
->addIcon('none', $duration);
|
||||
|
|
Loading…
Reference in a new issue