From 9cfe048d1298e7be8db9b5c2a88abaae114b23a3 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 27 Dec 2010 14:13:38 -0800 Subject: Bug 615574: Make every search done by buglist.cgi create a list_id, so that even Saved Searches get "last list" support. r=LpSolit, a=LpSolit --- buglist.cgi | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 38681ff93..bd285ebc0 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -81,29 +81,7 @@ if (grep { $_ =~ /^cmd\-/ } $cgi->param()) { exit; } -# If query was POSTed, clean the URL from empty parameters and redirect back to -# itself. This will make advanced search URLs more tolerable. -# -if ($cgi->request_method() eq 'POST') { - $cgi->clean_search_url(); - my $uri_length = length($cgi->self_url()); - - if (!$cgi->param('regetlastlist') and !$cgi->param('list_id') - and $user->id) - { - # 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 - # bug list we came from. - my $recent_search = Bugzilla::Search::Recent->create_placeholder; - $cgi->param('list_id', $recent_search->id); - } - - if ($uri_length < CGI_URI_LIMIT) { - print $cgi->redirect(-url => $cgi->self_url()); - exit; - } -} +$cgi->redirect_search_url(); # Determine whether this is a quicksearch query. my $searchstring = $cgi->param('quicksearch'); -- cgit v1.2.3-24-g4f1b