Commit 3566e55c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 383643: When using "Find a specific bug", the generated buglist does not let…

Bug 383643: When using "Find a specific bug", the generated buglist does not let you change the sort order - Patch by Alex Schuilenburg <alex@schuilenburg.org> r/a=LpSolit
parent 6724564e
...@@ -965,7 +965,7 @@ if (defined $cgi->param('limit')) { ...@@ -965,7 +965,7 @@ if (defined $cgi->param('limit')) {
} }
elsif ($fulltext) { elsif ($fulltext) {
$query .= " " . $dbh->sql_limit(FULLTEXT_BUGLIST_LIMIT); $query .= " " . $dbh->sql_limit(FULLTEXT_BUGLIST_LIMIT);
$vars->{'sorted_by_relevance'} = 1; $vars->{'message'} = 'buglist_sorted_by_relevance' if ($cgi->param('order') =~ /^relevance/);
} }
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
[% END %] [% END %]
[% qorder = order FILTER url_quote IF order %] [% qorder = order FILTER url_quote IF order %]
[% message = "buglist_sorted_by_relevance" IF sorted_by_relevance %]
[%############################################################################%] [%############################################################################%]
......
...@@ -85,9 +85,6 @@ ...@@ -85,9 +85,6 @@
<th>&nbsp;</th> <th>&nbsp;</th>
[% END %] [% END %]
<th colspan="[% splitheader ? 2 : 1 %]" class="first-child"> <th colspan="[% splitheader ? 2 : 1 %]" class="first-child">
[% IF sorted_by_relevance %]
ID
[% ELSE %]
[% desc = '' %] [% desc = '' %]
[% IF (om = order.match("^bugs\.bug_id( desc)?")) %] [% IF (om = order.match("^bugs\.bug_id( desc)?")) %]
[% desc = ' desc' IF NOT om.0 %] [% desc = ' desc' IF NOT om.0 %]
...@@ -96,7 +93,6 @@ ...@@ -96,7 +93,6 @@
[% urlquerypart FILTER html %]&amp;order=bugs.bug_id[% desc FILTER url_quote %] [% urlquerypart FILTER html %]&amp;order=bugs.bug_id[% desc FILTER url_quote %]
[%-#%]&amp;query_based_on= [%-#%]&amp;query_based_on=
[% defaultsavename OR searchname FILTER url_quote %]">ID</a> [% defaultsavename OR searchname FILTER url_quote %]">ID</a>
[% END %]
</th> </th>
[% IF splitheader %] [% IF splitheader %]
...@@ -133,9 +129,6 @@ ...@@ -133,9 +129,6 @@
[% BLOCK columnheader %] [% BLOCK columnheader %]
<th colspan="[% splitheader ? 2 : 1 %]"> <th colspan="[% splitheader ? 2 : 1 %]">
[% IF sorted_by_relevance %]
[%- abbrev.$id.title || field_descs.$id || column.title -%]
[% ELSE %]
[% IF column.name.match('\s+AS\s+') %] [% IF column.name.match('\s+AS\s+') %]
[%# For aliased columns, use their ID for sorting. %] [%# For aliased columns, use their ID for sorting. %]
[% column.sortalias = id %] [% column.sortalias = id %]
...@@ -154,7 +147,6 @@ ...@@ -154,7 +147,6 @@
[%-#%]&amp;query_based_on= [%-#%]&amp;query_based_on=
[% defaultsavename OR searchname FILTER url_quote %]"> [% defaultsavename OR searchname FILTER url_quote %]">
[%- abbrev.$id.title || field_descs.$id || column.title -%]</a> [%- abbrev.$id.title || field_descs.$id || column.title -%]</a>
[% END %]
</th> </th>
[% END %] [% END %]
......
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