@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+12 -1
+12 -1
src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
··· 287 287 $event->getDuration()); 288 288 } 289 289 290 + if ($event->getIsGhostEvent()) { 291 + $title_text = $event->getMonogram() 292 + .' (' 293 + .$event->getSequenceIndex() 294 + .'): ' 295 + .$event->getName(); 296 + } else { 297 + $title_text = $event->getMonogram().': '.$event->getName(); 298 + } 299 + 290 300 $item = id(new PHUIObjectItemView()) 291 301 ->setUser($viewer) 292 302 ->setObject($event) 293 - ->setHeader($viewer->renderHandle($event->getPHID())->render()) 303 + ->setHeader($title_text) 304 + ->setHref($event->getURI()) 294 305 ->addAttribute($event_date_info) 295 306 ->addAttribute($attendees) 296 307 ->addIcon('none', $duration);