Closed Bug 678357 Opened 13 years ago Closed 13 years ago

Saved searches results in a bug list is not being limited by the 'limit' parameter

Categories

(Bugzilla :: Query/Bug List, defect)

4.1.3
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: timello, Assigned: timello)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
It is sometimes very useful to save a query with a limit for the results. We are overriding the limit value with the default_limited when we shouldn't.
Attachment #552504 - Flags: review?(mkanat)
Comment on attachment 552504 [details] [diff] [review] v1 Review of attachment 552504 [details] [diff] [review]: ----------------------------------------------------------------- ::: buglist.cgi @@ +767,5 @@ > # 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') > + && !defined $params->param('limit')) Oh gee! Shouldn't we just leave out the $cgi check entirely here?
Target Milestone: --- → Bugzilla 4.0
Target Milestone: Bugzilla 4.0 → Bugzilla 4.2
(In reply to Max Kanat-Alexander from comment #1) > Comment on attachment 552504 [details] [diff] [review] > v1 > > Review of attachment 552504 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: buglist.cgi > @@ +767,5 @@ > > # 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') > > + && !defined $params->param('limit')) > > Oh gee! Shouldn't we just leave out the $cgi check entirely here? Indeed.
Attached patch v2Splinter Review
Attachment #552504 - Attachment is obsolete: true
Attachment #552504 - Flags: review?(mkanat)
Attachment #553606 - Flags: review?(mkanat)
Attachment #553606 - Flags: review?(mkanat) → review+
Flags: approval4.2+
Flags: approval+
Committing to: bzr+ssh://timello%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified buglist.cgi Committed revision 7932. Committing to: bzr+ssh://timello%40gmail.com@bzr.mozilla.org/bugzilla/4.2/ modified buglist.cgi Committed revision 7907.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: