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)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.2
People
(Reporter: timello, Assigned: timello)
Details
Attachments
(1 file, 1 obsolete file)
572 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | 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 1•13 years ago
|
||
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?
Updated•13 years ago
|
Target Milestone: --- → Bugzilla 4.0
Updated•13 years ago
|
Target Milestone: Bugzilla 4.0 → Bugzilla 4.2
Assignee | ||
Comment 2•13 years ago
|
||
(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.
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #552504 -
Attachment is obsolete: true
Attachment #552504 -
Flags: review?(mkanat)
Attachment #553606 -
Flags: review?(mkanat)
Updated•13 years ago
|
Attachment #553606 -
Flags: review?(mkanat) → review+
Updated•13 years ago
|
Flags: approval4.2+
Flags: approval+
Assignee | ||
Comment 4•13 years ago
|
||
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.
Description
•