summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Config/Query.pm7
-rw-r--r--Bugzilla/Search.pm2
2 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/Config/Query.pm b/Bugzilla/Config/Query.pm
index 3513b12e3..17a74998e 100644
--- a/Bugzilla/Config/Query.pm
+++ b/Bugzilla/Config/Query.pm
@@ -74,6 +74,13 @@ sub get_param_list {
},
{
+ name => 'default_search_limit',
+ type => 't',
+ default => '500',
+ checker => \&check_numeric
+ },
+
+ {
name => 'max_search_results',
type => 't',
default => '10000',
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index edb59e40e..81b459ee5 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -920,7 +920,7 @@ sub _sql_limit {
$limit = $max_results;
}
- if (defined $offset and not defined $limit) {
+ if (defined($offset) && !$limit) {
$limit = INT_MAX;
}
if (defined $limit) {