Commit abcd7bf1 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 234797: adds a "limit" param for limiting the number of results returned from a search.

r=justdave a=justdave
parent 1c03d215
......@@ -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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment