]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 234797: adds a "limit" param for limiting the number of results returned...
authormyk%mozilla.org <>
Tue, 6 Apr 2004 08:19:15 +0000 (08:19 +0000)
committermyk%mozilla.org <>
Tue, 6 Apr 2004 08:19:15 +0000 (08:19 +0000)
r=justdave
a=justdave

buglist.cgi

index 6a718133735fb6dbb2aa88221c726928af96706f..98b7ff116b9976085ad23568129beeb51d645f1a 100755 (executable)
@@ -676,7 +676,10 @@ if ($db_order =~ /bugs.target_milestone/) {
 
 $query .= " ORDER BY $db_order " if ($order);
 
-if ($fulltext) {
+if ($::FORM{'limit'} && detaint_natural($::FORM{'limit'})) {
+    $query .= " LIMIT $::FORM{'limit'}";
+}
+elsif ($fulltext) {
     $query .= " LIMIT 200";
 }