summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyk%mozilla.org <>2004-04-06 10:19:15 +0200
committermyk%mozilla.org <>2004-04-06 10:19:15 +0200
commitabcd7bf18cb0bcd7fd492191977805d15c28646b (patch)
tree2580cb108e12c3e5e9bef3f2d5bed1278502d14f
parent1c03d215b0cb81a8deb67f58c345abd2b6f5f739 (diff)
downloadbugzilla-abcd7bf18cb0bcd7fd492191977805d15c28646b.tar.gz
bugzilla-abcd7bf18cb0bcd7fd492191977805d15c28646b.tar.xz
Fix for bug 234797: adds a "limit" param for limiting the number of results returned from a search.
r=justdave a=justdave
-rwxr-xr-xbuglist.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 6a7181337..98b7ff116 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -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";
}