]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 179193 - anyexact should use IN, not OR
authorbbaetz%student.usyd.edu.au <>
Sun, 10 Nov 2002 07:02:25 +0000 (07:02 +0000)
committerbbaetz%student.usyd.edu.au <>
Sun, 10 Nov 2002 07:02:25 +0000 (07:02 +0000)
r=gerv, a=justdave

Bugzilla/Search.pm

index 73d95c5242d6d5c96a797374a3d1328d2b3a53b8..de40d47e04c4a0bcd7498808ceb5a01e87d2308c 100644 (file)
@@ -626,9 +626,11 @@ sub init {
                  if ($w eq "---" && $f !~ /milestone/) {
                      $w = "";
                  }
-                 push(@list, "$ff = " . &::SqlQuote($w));
+                 push(@list, &::SqlQuote($w));
+             }
+             if (@list) {
+                 $term = "$ff IN (" . join (',', @list) . ")";
              }
-             $term = join(" OR ", @list);
          },
          ",anywordssubstr" => sub {
              $term = join(" OR ", @{GetByWordListSubstr($ff, $v)});