diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php index ba3c8de106..28531a2d04 100644 --- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php +++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php @@ -43,13 +43,15 @@ final class PhabricatorTypeaheadModularDatasourceController $composite = new PhabricatorTypeaheadRuntimeCompositeDatasource(); $composite->addDatasource($source); + $hard_limit = 1000; + $limit = 100; + $composite ->setViewer($viewer) ->setQuery($query) - ->setRawQuery($raw_query); + ->setRawQuery($raw_query) + ->setLimit($limit); - $hard_limit = 1000; - $limit = 100; if ($is_browse) { if (!$composite->isBrowsable()) { @@ -63,7 +65,6 @@ final class PhabricatorTypeaheadModularDatasourceController } $composite - ->setLimit($limit + 1) ->setOffset($offset); }