From 0cf288f0b0f64c459bd75731559671a6f2c6d306 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 3 May 2013 19:16:58 -0400 Subject: [PATCH] Bug 652625 - Empty queries still get run because the list_id parameter is added to them r/a=mkanat --- Bugzilla/CGI.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 106944d74a..b07e356866 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -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 -- 2.47.2