Page MenuHomePhabricator

D10947.id26288.diff
No OneTemporary

D10947.id26288.diff

diff --git a/src/applications/search/controller/PhabricatorSearchController.php b/src/applications/search/controller/PhabricatorSearchController.php
--- a/src/applications/search/controller/PhabricatorSearchController.php
+++ b/src/applications/search/controller/PhabricatorSearchController.php
@@ -39,6 +39,11 @@
// with only this piece of somewhat-sketchy code. See discussion in T4365.
if ($request->getBool('search:primary')) {
+ if (!strlen($request->getStr('query'))) {
+ $advanced_uri = '/search/query/advanced/';
+ return id(new AphrontRedirectResponse())->setURI($advanced_uri);
+ }
+
$named_queries = $engine->loadEnabledNamedQueries();
if ($named_queries) {
$named = head($named_queries);

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 12:33 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7694642
Default Alt Text
D10947.id26288.diff (760 B)

Event Timeline