]> 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:12:53 +0000 (19:12 -0400)
committerDavid Lawrence <dlawrence@mozilla.com>
Fri, 3 May 2013 23:12:53 +0000 (19:12 -0400)
r/a=mkanat

Bugzilla/CGI.pm

index 3165cb003e2bb474c4b5373f9a6ddcb7cef3564b..40eab2a15e4812e27e5f707ad0ae824018b2067a 100644 (file)
@@ -438,7 +438,9 @@ sub redirect_search_url {
 
     $self->clean_search_url();
 
-    if ($user->id) {
+    # Make sure we still 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