]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 678357: Fix 'limit' parameter in the saved searches results
authorTiago Mello <timello@gmail.com>
Tue, 16 Aug 2011 22:52:45 +0000 (19:52 -0300)
committerTiago Mello <timello@gmail.com>
Tue, 16 Aug 2011 22:52:45 +0000 (19:52 -0300)
r/a=mkanat

buglist.cgi

index 7549063a4691b387ac567cde9a922d29099e3e78..bf8b443e6af4c57887b8921d34a444086f3670de 100755 (executable)
@@ -766,7 +766,7 @@ if ($fulltext and grep { /^relevance/ } @orderstrings) {
 # In the HTML interface, by default, we limit the returned results,
 # which speeds up quite a few searches where people are really only looking
 # for the top results.
-if ($format->{'extension'} eq 'html' && !defined $cgi->param('limit')) {
+if ($format->{'extension'} eq 'html' && !defined $params->param('limit')) {
     $params->param('limit', Bugzilla->params->{'default_search_limit'});
     $vars->{'default_limited'} = 1;
 }