From 911599d3eba0787b51171f9a34fa399c13969d9d Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Sun, 10 Nov 2002 07:02:25 +0000 Subject: Bug 179193 - anyexact should use IN, not OR r=gerv, a=justdave --- Bugzilla/Search.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla') 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)}); -- cgit v1.2.3-24-g4f1b