From e4fc1997b4fd4bbf08aa7947689e2df4b812a348 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 20 Jun 2005 20:35:58 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20244533:=20Display=20"only=20the=20200=20m?= =?UTF-8?q?ost=20relevant=20bugs=20are=20shown"=20only=20when=20more=20tha?= =?UTF-8?q?n=20200=20bugs=20are=20found=20-=20Patch=20by=20Fr=C3=A9d=C3=A9?= =?UTF-8?q?ric=20Buclin=20=20r=3Dkiko=20a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@174875 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/buglist.cgi | 1 + .../bugzilla/template/en/default/global/messages.html.tmpl | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/buglist.cgi b/mozilla/webtools/bugzilla/buglist.cgi index 106236175ef..3070fbcec68 100755 --- a/mozilla/webtools/bugzilla/buglist.cgi +++ b/mozilla/webtools/bugzilla/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/mozilla/webtools/bugzilla/template/en/default/global/messages.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/global/messages.html.tmpl index 51056ec6c62..e0821688b89 100644 --- a/mozilla/webtools/bugzilla/template/en/default/global/messages.html.tmpl +++ b/mozilla/webtools/bugzilla/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" %]