From 2f7d085d82c45225062be0c096163cbe636ad451 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 3 May 2013 19:12:53 -0400 Subject: 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(-) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 3165cb003..40eab2a15 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -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 -- cgit v1.2.3-24-g4f1b