Commit 6feae3e2 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 277466: saved search's old name is used when running a search - Patch by Rob…

Bug 277466: saved search's old name is used when running a search - Patch by Rob Siklos <robzilla@siklos.ca> r=LpSolit,joel a=justdave
parent 37e00b47
...@@ -934,12 +934,11 @@ $vars->{'closedstates'} = ['CLOSED', 'VERIFIED', 'RESOLVED']; ...@@ -934,12 +934,11 @@ $vars->{'closedstates'} = ['CLOSED', 'VERIFIED', 'RESOLVED'];
# The list of query fields in URL query string format, used when creating # 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 # 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 # 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 # results). To get this string, we call the Bugzilla::CGI::canoncalise_query
# buffer that was created when we initially parsed the URL on script startup, # function with a list of elements to be removed from the URL.
# then we remove all non-query fields from it, f.e. the sort order (order) $vars->{'urlquerypart'} = $params->canonicalise_query('order',
# and command type (cmdtype) fields. 'cmdtype',
$vars->{'urlquerypart'} = $buffer; 'query_based_on');
$vars->{'urlquerypart'} =~ s/(order|cmdtype)=[^&]*&?//g;
$vars->{'order'} = $order; $vars->{'order'} = $order;
# The user's login account name (i.e. email address). # The user's login account name (i.e. email address).
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<tr> <tr>
<td>[% q.name FILTER html %]</td> <td>[% q.name FILTER html %]</td>
<td> <td>
<a href="buglist.cgi?[% q.query FILTER html %]">Run</a> <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER url_quote %]">Run</a>
</td> </td>
<td> <td>
<a href="query.cgi?[% q.query FILTER html %]&amp;known_name=[% q.name FILTER url_quote %]">Edit</a> <a href="query.cgi?[% q.query FILTER html %]&amp;known_name=[% q.name FILTER url_quote %]">Edit</a>
......
...@@ -159,7 +159,8 @@ ...@@ -159,7 +159,8 @@
<a href="buglist.cgi? <a href="buglist.cgi?
[% urlquerypart FILTER html %]&amp;ctype=ics">iCalendar</a> | [% urlquerypart FILTER html %]&amp;ctype=ics">iCalendar</a> |
<a href="colchange.cgi? <a href="colchange.cgi?
[% urlquerypart FILTER html %]">Change&nbsp;Columns</a> | [% urlquerypart FILTER html %]&amp;query_based_on=
[% defaultsavename OR searchname FILTER html %]">Change&nbsp;Columns</a> |
[% IF bugs.size > 1 && caneditbugs && !dotweak %] [% IF bugs.size > 1 && caneditbugs && !dotweak %]
<a href="buglist.cgi?[% urlquerypart FILTER html %] <a href="buglist.cgi?[% urlquerypart FILTER html %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment