From: lpsolit%gmail.com <> Date: Tue, 21 Jun 2005 03:35:58 +0000 (+0000) Subject: Bug 244533: Display "only the 200 most relevant bugs are shown" only when more than... X-Git-Tag: bugzilla-2.18.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6004c1020598466dacc2c0cb5a0dd6541d8e9926;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 4d104bb998..8653bd7a4f 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -720,6 +720,7 @@ if ($::FORM{'limit'} && detaint_natural($::FORM{'limit'})) { } elsif ($fulltext) { $query .= " 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 b007af2e18..1685152274 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -55,8 +55,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" %]