diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -4789,6 +4789,7 @@ 'PhabricatorSearchNgramsDestructionEngineExtension' => 'applications/search/engineextension/PhabricatorSearchNgramsDestructionEngineExtension.php', 'PhabricatorSearchOrderController' => 'applications/search/controller/PhabricatorSearchOrderController.php', 'PhabricatorSearchOrderField' => 'applications/search/field/PhabricatorSearchOrderField.php', + 'PhabricatorSearchPageSizeField' => 'applications/search/field/PhabricatorSearchPageSizeField.php', 'PhabricatorSearchRelationship' => 'applications/search/constants/PhabricatorSearchRelationship.php', 'PhabricatorSearchRelationshipController' => 'applications/search/controller/PhabricatorSearchRelationshipController.php', 'PhabricatorSearchRelationshipSourceController' => 'applications/search/controller/PhabricatorSearchRelationshipSourceController.php', @@ -11513,6 +11514,7 @@ 'PhabricatorSearchNgramsDestructionEngineExtension' => 'PhabricatorDestructionEngineExtension', 'PhabricatorSearchOrderController' => 'PhabricatorSearchBaseController', 'PhabricatorSearchOrderField' => 'PhabricatorSearchField', + 'PhabricatorSearchPageSizeField' => 'PhabricatorSearchField', 'PhabricatorSearchRelationship' => 'Phobject', 'PhabricatorSearchRelationshipController' => 'PhabricatorSearchBaseController', 'PhabricatorSearchRelationshipSourceController' => 'PhabricatorSearchBaseController', diff --git a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php --- a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php +++ b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php @@ -141,7 +141,7 @@ ->setKey('closerPHIDs') ->setAliases(array('closer', 'closerPHID', 'closers')) ->setDescription(pht('Search for tasks closed by certain users.')), - id(new PhabricatorSearchTextField()) + id(new PhabricatorSearchPageSizeField()) ->setLabel(pht('Page Size')) ->setKey('limit'), ); diff --git a/src/applications/search/field/PhabricatorSearchPageSizeField.php b/src/applications/search/field/PhabricatorSearchPageSizeField.php new file mode 100644 --- /dev/null +++ b/src/applications/search/field/PhabricatorSearchPageSizeField.php @@ -0,0 +1,22 @@ +getStr($key); + } + + protected function newControl() { + return new AphrontFormTextControl(); + } + + protected function newConduitParameterType() { + return new ConduitStringParameterType(); + } + +}