summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-11-10 08:02:25 +0100
committerbbaetz%student.usyd.edu.au <>2002-11-10 08:02:25 +0100
commit911599d3eba0787b51171f9a34fa399c13969d9d (patch)
tree9917b4e81b0f27a078bfb1eced92ced1a99ef863
parent58de3fae5eeb8cc3e6ab95e789387d3c9f4f8c9e (diff)
downloadbugzilla-911599d3eba0787b51171f9a34fa399c13969d9d.tar.gz
bugzilla-911599d3eba0787b51171f9a34fa399c13969d9d.tar.xz
Bug 179193 - anyexact should use IN, not OR
r=gerv, a=justdave
-rw-r--r--Bugzilla/Search.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 73d95c524..de40d47e0 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -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)});