Closed Bug 179184 Opened 22 years ago Closed 22 years ago

regetlastlist returns all bugs

Categories

(Bugzilla :: Query/Bug List, defect)

2.17
x86
Linux
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: bbaetz, Assigned: bbaetz)

References

Details

(Keywords: regression)

Attachments

(1 file)

regetlastlist changes $::buffer, but then the params object is created from $cgi.

Quick fix - change

my $params = new Bugzilla::CGI($cgi);

to use $::buffer instead

Better fix is to rearrange code a bit; pathc coming
Attached patch better fixSplinter Review
This is a better fix, in that its ever so slightly more efficent. Rather than
joining the bug_ids again, and then parsing them, create a CGI object with a
prefilled hash.

Also moves $params creation down to when we know it won't be replaced.
Comment on attachment 105670 [details] [diff] [review]
better fix

>-# The params object to use for the actual query itsself
>+# Now we're going to be running, so ensure that the params object is set up

Please use full stops in comments :-) And also, explain why the new CGI object
is created with ||=.

Other than that, r=gerv.

Gerv
Attachment #105670 - Flags: review+
# Now we're going to be running, so ensure that the params object is set up,
# using ||= so that we only do so if someone hasn't overridden this
# earlier, for example by setting up a named query search.
Keywords: regression
Target Milestone: --- → Bugzilla 2.18
Attachment #105670 - Flags: review+
Comment on attachment 105670 [details] [diff] [review]
better fix

This is just me doing some tests, guys - and I've found a bug, bug 179236.

Gerv
Attachment #105670 - Flags: review+
a=justdave
Fixed.  
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: