]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 244533: Display "only the 200 most relevant bugs are shown" only when more than...
authorlpsolit%gmail.com <>
Tue, 21 Jun 2005 03:32:34 +0000 (03:32 +0000)
committerlpsolit%gmail.com <>
Tue, 21 Jun 2005 03:32:34 +0000 (03:32 +0000)
buglist.cgi
template/en/default/global/messages.html.tmpl

index 106236175ef081b127803a7f95ab3a6d1c50d592..3070fbcec685ae97422936f10917516171c4b8ec 100755 (executable)
@@ -773,6 +773,7 @@ if (defined $cgi->param('limit')) {
 }
 elsif ($fulltext) {
     $query .= " " . $dbh->sql_limit(200);
+    $vars->{'sorted_by_relevance'} = 1;
 }
 
 
index 51056ec6c62e6a86a2aae2473cd4881d0fa2c2a6..e0821688b89427769e9fb378a830f4eff032571a 100644 (file)
 
   [% 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" %]