]> 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:35:58 +0000 (03:35 +0000)
committerlpsolit%gmail.com <>
Tue, 21 Jun 2005 03:35:58 +0000 (03:35 +0000)
buglist.cgi
template/en/default/global/messages.html.tmpl

index 4d104bb9983f735598739ad007ecd80362de0065..8653bd7a4f27da51d9177a25b97865a8090f00ae 100755 (executable)
@@ -720,6 +720,7 @@ if ($::FORM{'limit'} && detaint_natural($::FORM{'limit'})) {
 }
 elsif ($fulltext) {
     $query .= " LIMIT 200";
+    $vars->{'sorted_by_relevance'} = 1;
 }
 
 
index b007af2e189fc3752359ccaeab3213f991d4cbe0..1685152274bb02c59fce7abe55c2d5cbcceff05b 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" %]