From: bbaetz%student.usyd.edu.au <> Date: Sun, 10 Nov 2002 07:02:25 +0000 (+0000) Subject: Bug 179193 - anyexact should use IN, not OR X-Git-Tag: bugzilla-2.17.2~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911599d3eba0787b51171f9a34fa399c13969d9d;p=thirdparty%2Fbugzilla.git Bug 179193 - anyexact should use IN, not OR r=gerv, a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 73d95c5242..de40d47e04 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)});