From: lpsolit%gmail.com <> Date: Tue, 21 Jun 2005 03:32:34 +0000 (+0000) Subject: Bug 244533: Display "only the 200 most relevant bugs are shown" only when more than... X-Git-Tag: bugzilla-2.20rc1~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92f24fd50a29447b3d913cb9e0be8d4be04a9f0f;p=thirdparty%2Fbugzilla.git 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 r=kiko a=myk --- diff --git a/buglist.cgi b/buglist.cgi index 106236175e..3070fbcec6 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -773,6 +773,7 @@ if (defined $cgi->param('limit')) { } elsif ($fulltext) { $query .= " " . $dbh->sql_limit(200); + $vars->{'sorted_by_relevance'} = 1; } diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 51056ec6c6..e0821688b8 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -127,8 +127,10 @@ [% ELSIF message_tag == "buglist_sorted_by_relevance" %] [% terms.Bugs %] on this list are sorted by relevance, with the most - relevant [% terms.bugs %] at the top. Only the 200 most relevant - [%+ terms.bugs %] are shown. + relevant [% terms.bugs %] at the top. + [% IF bugs.size == 200 %] + Only the 200 most relevant [% terms.bugs %] are shown. + [% END %] [% ELSIF message_tag == "change_columns" %] [% title = "Change columns" %]