mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 02:31:10 +01:00
Make ghost event instances render better on the event list
Summary: Ref T11326. Currently, we render "E (99)" for ghost instances, which is meaningless and inconsistent. Render these more sensibly and consistently. Test Plan: Viewed event list, saw reasonable monograms / object names. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11326 Differential Revision: https://secure.phabricator.com/D16296
This commit is contained in:
parent
2a1b8ce85b
commit
7c9a74ce04
1 changed files with 6 additions and 7 deletions
|
@ -275,19 +275,18 @@ final class PhabricatorCalendarEventSearchEngine
|
|||
}
|
||||
|
||||
if ($event->getIsGhostEvent()) {
|
||||
$title_text = $event->getMonogram()
|
||||
.' ('
|
||||
.$event->getSequenceIndex()
|
||||
.'): '
|
||||
.$event->getName();
|
||||
$monogram = $event->getParentEvent()->getMonogram();
|
||||
$index = $event->getSequenceIndex();
|
||||
$monogram = "{$monogram}/{$index}";
|
||||
} else {
|
||||
$title_text = $event->getMonogram().': '.$event->getName();
|
||||
$monogram = $event->getMonogram();
|
||||
}
|
||||
|
||||
$item = id(new PHUIObjectItemView())
|
||||
->setUser($viewer)
|
||||
->setObject($event)
|
||||
->setHeader($title_text)
|
||||
->setObjectName($monogram)
|
||||
->setHeader($event->getName())
|
||||
->setHref($event->getURI())
|
||||
->addAttribute($event_date_info);
|
||||
|
||||
|
|
Loading…
Reference in a new issue