Differential D16248 Diff 39163 src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | switch ($map['isCancelled']) { | ||||
case 'active': | case 'active': | ||||
$query->withIsCancelled(false); | $query->withIsCancelled(false); | ||||
break; | break; | ||||
case 'cancelled': | case 'cancelled': | ||||
$query->withIsCancelled(true); | $query->withIsCancelled(true); | ||||
break; | break; | ||||
} | } | ||||
return $query->setGenerateGhosts(true); | // Generate ghosts (and ignore stub events) if we aren't querying for | ||||
// specific events. | |||||
if (!$map['ids'] && !$map['phids']) { | |||||
$query | |||||
->withIsStub(false) | |||||
->setGenerateGhosts(true); | |||||
} | |||||
return $query; | |||||
} | } | ||||
private function getQueryDateRange( | private function getQueryDateRange( | ||||
$start_date_wild, | $start_date_wild, | ||||
$end_date_wild, | $end_date_wild, | ||||
$display, | $display, | ||||
$upcoming) { | $upcoming) { | ||||
▲ Show 20 Lines • Show All 456 Lines • Show Last 20 Lines |