Commit 7a288e93 authored by terry%mozilla.org's avatar terry%mozilla.org

Asking for both keywords and CC info was creating corrupted SQL.

parent c3ea2bd2
...@@ -308,7 +308,7 @@ if ($::FORM{'keywords'}) { ...@@ -308,7 +308,7 @@ if ($::FORM{'keywords'}) {
} }
} }
if (@list) { if (@list) {
$query =~ s/bugs,/bugs, keywords,/; $query =~ s/where/, keywords where/;
$query .= "and keywords.bug_id = bugs.bug_id and (" . $query .= "and keywords.bug_id = bugs.bug_id and (" .
join(" $::FORM{'keywords_type'} ", @list) . ")\n"; join(" $::FORM{'keywords_type'} ", @list) . ")\n";
} }
...@@ -435,7 +435,7 @@ if (defined $ref) { ...@@ -435,7 +435,7 @@ if (defined $ref) {
if (defined $ref && 0 < @$ref) { if (defined $ref && 0 < @$ref) {
# Do surgery on the query to tell it to patch in the bugs_activity # Do surgery on the query to tell it to patch in the bugs_activity
# table. # table.
$query =~ s/bugs,/bugs, bugs_activity,/; $query =~ s/where/, bugs_activity where/;
my @list; my @list;
foreach my $f (@$ref) { foreach my $f (@$ref) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment