diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-12-27 23:13:38 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-12-27 23:13:38 +0100 |
commit | 9cfe048d1298e7be8db9b5c2a88abaae114b23a3 (patch) | |
tree | 9c2e3c4cd8db31435d53f14e90a9057874192f5d /buglist.cgi | |
parent | f573509ba734f29863500dc1c014fd43990e6291 (diff) | |
download | bugzilla-9cfe048d1298e7be8db9b5c2a88abaae114b23a3.tar.gz bugzilla-9cfe048d1298e7be8db9b5c2a88abaae114b23a3.tar.xz |
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
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 24 |
1 files changed, 1 insertions, 23 deletions
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'); |