]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 652625 - Empty queries still get run because the list_id parameter is added to...
authorDavid Lawrence <dlawrence@mozilla.com>
Fri, 3 May 2013 23:16:58 +0000 (19:16 -0400)
committerDavid Lawrence <dlawrence@mozilla.com>
Fri, 3 May 2013 23:16:58 +0000 (19:16 -0400)
r/a=mkanat

Bugzilla/CGI.pm

index 106944d74a30630baf7fa51192f3f96c91ce65f8..b07e35686628ebc4325fc89d539d2fc6932b2bcc 100644 (file)
@@ -440,7 +440,9 @@ sub redirect_search_url {
 
     $self->clean_search_url();
 
-    if ($user->id) {
+    # Make sure we have params still after cleaning otherwise we 
+    # do not want to store a list_id for an empty search.
+    if ($user->id && $self->param) {
         # Insert a placeholder Bugzilla::Search::Recent, so that we know what
         # the id of the resulting search will be. This is then pulled out
         # of the Referer header when viewing show_bug.cgi to know what