Closed Bug 178383 Opened 22 years ago Closed 22 years ago

product/component query conditions appear twice

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: myk, Assigned: bbaetz)

Details

Attachments

(1 file)

2.01 KB, patch
bbaetz
: review+
myk
justdave
: review+
justdave
Details | Diff | Splinter Review
When you run a query for product=foo OR product=bar, the query conditions appear
twice in the SQL query.
There are actually two separate bugs here:

    if ($params->param('product')) {
        push(@supptables, "products products_");
        push(@wherepart, "products_.id = bugs.product_id");
        push(@specialchart, ["products_.name", "anyexact",
                             join(',',$params->param('product'))]);
    }

we can drop the @wherepart push, since the specialchart stuff will set that up
below (actually, it does |bugs.product_id = products_.id|, ie the other way
arround. Thats just cosmetic)

The other bug is that the (products_.name = "FOO") stuff is duplicated. Off the
top of my head, I'm not sure why that happens.
-> me, with a patch
Assignee: endico → bbaetz
Target Milestone: --- → Bugzilla 2.18
Attached patch fixSplinter Review
Originally, I added that code to handle product searches, then I had to modify
the main query stuff to handle boolean charts, and forgot to take the original
change out.

trivial, myk has said r=myk on irc earlier
Comment on attachment 105674 [details] [diff] [review]
fix

myk said r=myk while bmo was down
Attachment #105674 - Flags: review+
Comment on attachment 105674 [details] [diff] [review]
fix

requesting a=
Attachment #105674 - Flags: review?
Comment on attachment 105674 [details] [diff] [review]
fix

r= justdave
Attachment #105674 - Flags: review? → review+
Checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Summary: query conditions appear twice → product/component query conditions appear twice
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: