From e5b97cd17c364beb3c14efd539e103b69313af9e Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 18 Apr 2015 11:07:23 -0700 Subject: [PATCH] Fix typeahead browse dialog paging Summary: This accidentally got disabled; we need to pull one more result that we'll use to tell if there's a next page. Test Plan: Saw "more results" again. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12461 --- .../PhabricatorTypeaheadModularDatasourceController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php index 542d9d336b..773c031e43 100644 --- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php +++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php @@ -50,8 +50,7 @@ final class PhabricatorTypeaheadModularDatasourceController ->setViewer($viewer) ->setQuery($query) ->setRawQuery($raw_query) - ->setLimit($limit); - + ->setLimit($limit + 1); if ($is_browse) { if (!$composite->isBrowsable()) {