Page MenuHomePhorge

D25479.1734621836.diff
No OneTemporary

D25479.1734621836.diff

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 @@
+<?php
+
+final class PhabricatorSearchPageSizeField
+ extends PhabricatorSearchField {
+
+ protected function getDefaultValue() {
+ return '100';
+ }
+
+ protected function getValueFromRequest(AphrontRequest $request, $key) {
+ return $request->getStr($key);
+ }
+
+ protected function newControl() {
+ return new AphrontFormTextControl();
+ }
+
+ protected function newConduitParameterType() {
+ return new ConduitStringParameterType();
+ }
+
+}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 15:23 (18 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015135
Default Alt Text
D25479.1734621836.diff (2 KB)

Event Timeline