From: lpsolit%gmail.com <> Date: Wed, 10 Aug 2005 16:47:58 +0000 (+0000) Subject: Bug 277466: saved search's old name is used when running a search - Patch by Rob... X-Git-Tag: bugzilla-2.21.1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6feae3e22d8de4aa89af6fbbc24ef69ded4ecfff;p=thirdparty%2Fbugzilla.git Bug 277466: saved search's old name is used when running a search - Patch by Rob Siklos r=LpSolit,joel a=justdave --- diff --git a/buglist.cgi b/buglist.cgi index 6bc3af291c..9846d6a3cd 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). diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index 8827a89ba2..741facc17a 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -64,7 +64,7 @@ [% q.name FILTER html %] - Run + Run Edit diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 9961bb1b34..a7b2b344cc 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -159,7 +159,8 @@ iCalendar | Change Columns | + [% urlquerypart FILTER html %]&query_based_on= + [% defaultsavename OR searchname FILTER html %]">Change Columns | [% IF bugs.size > 1 && caneditbugs && !dotweak %]