Bug 54380

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@431 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2009-09-16 13:26:34 +00:00
parent ce9111c398
commit 55d257fced
2 changed files with 6 additions and 3 deletions

View File

@ -583,6 +583,8 @@ if (!$params->param('query_format')) {
$buffer = $params->query_string;
}
my $query_format = $params->param('query_format');
################################################################################
# Column Definition
################################################################################
@ -1031,7 +1033,8 @@ $vars->{'closedstates'} = [map {$_->name} closed_bug_statuses()];
# a different sort order or when taking some action on the set of query
# 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('cmdtype',
$vars->{'urlquerypart'} = $params->canonicalise_query('order',
'cmdtype',
'query_based_on');
$vars->{'order'} = $order;
$vars->{'caneditbugs'} = 1;
@ -1145,7 +1148,7 @@ my $contenttype;
my $disposition = "inline";
if ($format->{'extension'} eq "html" && !$agent) {
if ($order && !$cgi->param('sharer_id')) {
if ($order && !$cgi->param('sharer_id') && $query_format ne 'specific') {
$cgi->send_cookie(-name => 'LASTORDER',
-value => $order,
-expires => 'Fri, 01-Jan-2038 00:00:00 GMT');

View File

@ -248,7 +248,7 @@ Bug ID list:
<td valign="middle" class="bz_query_edit">
<table><tr><td>
[% editqueryname = searchname OR defaultsavename OR '' %]
<a href="query.cgi?[% urlquerypart FILTER html %]
<a href="query.cgi?[% urlquerypart FILTER html %]&amp;order=[% order FILTER html %]
[% IF editqueryname != '' %]&amp;known_name=
[% editqueryname FILTER url_quote %]
[% END %]">Edit&nbsp;Search</a>