]> 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:50:52 +0000 (19:50 -0300)
committerTiago Mello <timello@gmail.com>
Tue, 16 Aug 2011 22:50:52 +0000 (19:50 -0300)
r/a=mkanat

buglist.cgi

index 0797aa389356133d17f9b405653276a28f6271c5..e928af905a6887b45a22d0e4e3b9956fe5fdc0b5 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;
 }