Commit 92f24fd5 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 244533: Display "only the 200 most relevant bugs are shown" only when more…

Bug 244533: Display "only the 200 most relevant bugs are shown" only when more than 200 bugs are found - Patch by Frédéric Buclin <LpSolit@gmail.com> r=kiko a=myk
parent 7b043a40
...@@ -773,6 +773,7 @@ if (defined $cgi->param('limit')) { ...@@ -773,6 +773,7 @@ if (defined $cgi->param('limit')) {
} }
elsif ($fulltext) { elsif ($fulltext) {
$query .= " " . $dbh->sql_limit(200); $query .= " " . $dbh->sql_limit(200);
$vars->{'sorted_by_relevance'} = 1;
} }
......
...@@ -127,8 +127,10 @@ ...@@ -127,8 +127,10 @@
[% ELSIF message_tag == "buglist_sorted_by_relevance" %] [% ELSIF message_tag == "buglist_sorted_by_relevance" %]
[% terms.Bugs %] on this list are sorted by relevance, with the most [% terms.Bugs %] on this list are sorted by relevance, with the most
relevant [% terms.bugs %] at the top. Only the 200 most relevant relevant [% terms.bugs %] at the top.
[%+ terms.bugs %] are shown. [% IF bugs.size == 200 %]
Only the 200 most relevant [% terms.bugs %] are shown.
[% END %]
[% ELSIF message_tag == "change_columns" %] [% ELSIF message_tag == "change_columns" %]
[% title = "Change columns" %] [% title = "Change columns" %]
......
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