summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-11 06:24:18 +0100
committerterry%mozilla.org <>2000-01-11 06:24:18 +0100
commit7a288e93d95c4f950c331a9919c7e7647dc559d2 (patch)
treeafe92d83f863b9fa468e8da5d9b0636d298c879b /buglist.cgi
parentc3ea2bd292f533e988ef6af346bafff2de581ff0 (diff)
downloadbugzilla-7a288e93d95c4f950c331a9919c7e7647dc559d2.tar.gz
bugzilla-7a288e93d95c4f950c331a9919c7e7647dc559d2.tar.xz
Asking for both keywords and CC info was creating corrupted SQL.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 7ae3f066c..c3887b6ed 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -308,7 +308,7 @@ if ($::FORM{'keywords'}) {
}
}
if (@list) {
- $query =~ s/bugs,/bugs, keywords,/;
+ $query =~ s/where/, keywords where/;
$query .= "and keywords.bug_id = bugs.bug_id and (" .
join(" $::FORM{'keywords_type'} ", @list) . ")\n";
}
@@ -435,7 +435,7 @@ if (defined $ref) {
if (defined $ref && 0 < @$ref) {
# Do surgery on the query to tell it to patch in the bugs_activity
# table.
- $query =~ s/bugs,/bugs, bugs_activity,/;
+ $query =~ s/where/, bugs_activity where/;
my @list;
foreach my $f (@$ref) {