From 6feae3e22d8de4aa89af6fbbc24ef69ded4ecfff Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 10 Aug 2005 16:47:58 +0000 Subject: Bug 277466: saved search's old name is used when running a search - Patch by Rob Siklos r=LpSolit,joel a=justdave --- buglist.cgi | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 6bc3af291..9846d6a3c 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -934,12 +934,11 @@ $vars->{'closedstates'} = ['CLOSED', 'VERIFIED', 'RESOLVED']; # The list of query fields in URL query string format, used when creating # URLs to the same query results page with different parameters (such as # a different sort order or when taking some action on the set of query -# results). To get this string, we start with the raw URL query string -# buffer that was created when we initially parsed the URL on script startup, -# then we remove all non-query fields from it, f.e. the sort order (order) -# and command type (cmdtype) fields. -$vars->{'urlquerypart'} = $buffer; -$vars->{'urlquerypart'} =~ s/(order|cmdtype)=[^&]*&?//g; +# results). To get this string, we call the Bugzilla::CGI::canoncalise_query +# function with a list of elements to be removed from the URL. +$vars->{'urlquerypart'} = $params->canonicalise_query('order', + 'cmdtype', + 'query_based_on'); $vars->{'order'} = $order; # The user's login account name (i.e. email address). -- cgit v1.2.3-24-g4f1b