Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15482954
D7667.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7667.diff
View Options
Index: src/applications/search/controller/PhabricatorApplicationSearchController.php
===================================================================
--- src/applications/search/controller/PhabricatorApplicationSearchController.php
+++ src/applications/search/controller/PhabricatorApplicationSearchController.php
@@ -107,11 +107,24 @@
$run_query = false;
$query_key = $request->getStr('query');
} else if (!strlen($this->queryKey)) {
- if ($request->isHTTPGet() && $request->getPassthroughRequestData()) {
+ $found_query_data = false;
+
+ if ($request->isHTTPGet()) {
// If this is a GET request and it has some query data, don't
- // do anything. We'll build and execute a query from it below.
- // This allows external tools to build URIs like "/query/?users=a,b".
- } else {
+ // do anything unless it's only before= or after=. We'll build and
+ // execute a query from it below. This allows external tools to build
+ // URIs like "/query/?users=a,b".
+ $pt_data = $request->getPassthroughRequestData();
+
+ foreach ($pt_data as $pt_key => $pt_value) {
+ if ($pt_key != 'before' && $pt_key != 'after') {
+ $found_query_data = true;
+ break;
+ }
+ }
+ }
+
+ if (!$found_query_data) {
// Otherwise, there's no query data so just run the user's default
// query for this application.
$query_key = head_key($engine->loadEnabledNamedQueries());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 10, 8:45 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722242
Default Alt Text
D7667.diff (1 KB)
Attached To
Mode
D7667: Fix Maniphest Next button not working when default query has 100+ results.
Attached
Detach File
Event Timeline
Log In to Comment