Closed
Bug 178383
Opened 23 years ago
Closed 23 years ago
product/component query conditions appear twice
Categories
(Bugzilla :: Query/Bug List, defect)
Bugzilla
Query/Bug List
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: myk, Assigned: bbaetz)
Details
Attachments
(1 file)
|
2.01 KB,
patch
|
Details | Diff | Splinter Review |
When you run a query for product=foo OR product=bar, the query conditions appear
twice in the SQL query.
| Assignee | ||
Comment 1•23 years ago
|
||
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.
| Assignee | ||
Comment 2•23 years ago
|
||
-> me, with a patch
Assignee: endico → bbaetz
Target Milestone: --- → Bugzilla 2.18
| Assignee | ||
Comment 3•23 years ago
|
||
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
| Assignee | ||
Comment 4•23 years ago
|
||
Comment on attachment 105674 [details] [diff] [review]
fix
myk said r=myk while bmo was down
Attachment #105674 -
Flags: review+
| Assignee | ||
Comment 5•23 years ago
|
||
Comment on attachment 105674 [details] [diff] [review]
fix
requesting a=
Attachment #105674 -
Flags: review?
Comment 6•23 years ago
|
||
Comment on attachment 105674 [details] [diff] [review]
fix
r= justdave
Attachment #105674 -
Flags: review? → review+
| Assignee | ||
Comment 7•23 years ago
|
||
Checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Summary: query conditions appear twice → product/component query conditions appear twice
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•