diff options
author | myk%mozilla.org <> | 2004-04-06 10:19:15 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2004-04-06 10:19:15 +0200 |
commit | abcd7bf18cb0bcd7fd492191977805d15c28646b (patch) | |
tree | 2580cb108e12c3e5e9bef3f2d5bed1278502d14f /buglist.cgi | |
parent | 1c03d215b0cb81a8deb67f58c345abd2b6f5f739 (diff) | |
download | bugzilla-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
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 5 |
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"; } |