1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Always set a typeahead result limit, even for non-browse queries

Ref T4100. The limit on People queries was inadvertently removed.
This commit is contained in:
epriestley 2015-04-17 11:18:58 -07:00
parent ea97d75a67
commit e558a2e729

View file

@ -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);
}