From 314dc5b9576bb9153edf8a400a649e4c687b1c6f Mon Sep 17 00:00:00 2001 From: lkassianik Date: Thu, 7 May 2015 21:18:48 -0700 Subject: [PATCH] Calendar builtin queries should include a Day View Summary: Closes T8108, Calendar sidebar should include a Day View builtin query Test Plan: Open Calendar, navigate to Day View in left sidebar, Day View with event preview should work as expected Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T8108 Differential Revision: https://secure.phabricator.com/D12767 --- .../calendar/query/PhabricatorCalendarEventSearchEngine.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php index b525420ca3..6e79d44940 100644 --- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php +++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php @@ -220,6 +220,7 @@ final class PhabricatorCalendarEventSearchEngine protected function getBuiltinQueryNames() { $names = array( 'month' => pht('Month View'), + 'day' => pht('Day View'), 'upcoming' => pht('Upcoming Events'), 'all' => pht('All Events'), ); @@ -242,6 +243,8 @@ final class PhabricatorCalendarEventSearchEngine switch ($query_key) { case 'month': return $query->setParameter('display', 'month'); + case 'day': + return $query->setParameter('display', 'day'); case 'upcoming': return $query->setParameter('upcoming', true); case 'all':