From 42fd13e79302d70f1cadf8c7be289c8c35ad4977 Mon Sep 17 00:00:00 2001 From: lkassianik Date: Thu, 25 Jun 2015 14:40:06 -0700 Subject: [PATCH] Set display mode for Upcoming Events builtin query so that no `$max_range` is set on the query Summary: Fixes T8675, Set display mode for Upcoming Events builtin query so that no `$max_range` is set on the query Test Plan: Open Upcoming Events builtin query, max events returned should be size of the page (100 objects) Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T8675 Differential Revision: https://secure.phabricator.com/D13447 --- .../query/PhabricatorCalendarEventSearchEngine.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php index 9cd5a9fd34..344e5d3be7 100644 --- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php +++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php @@ -228,9 +228,11 @@ final class PhabricatorCalendarEventSearchEngine case 'day': return $query->setParameter('display', 'day'); case 'upcoming': - return $query->setParameter('upcoming', array( - 0 => 'upcoming', - )); + return $query + ->setParameter('display', 'list') + ->setParameter('upcoming', array( + 0 => 'upcoming', + )); case 'all': return $query; }