]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Asking for both keywords and CC info was creating corrupted SQL.
authorterry%mozilla.org <>
Tue, 11 Jan 2000 05:24:18 +0000 (05:24 +0000)
committerterry%mozilla.org <>
Tue, 11 Jan 2000 05:24:18 +0000 (05:24 +0000)
buglist.cgi

index 7ae3f066c90b3400f2342b62f22db364c0a777cd..c3887b6edc82bba0378cb9aefe13bef9197e42b0 100755 (executable)
@@ -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) {