diff --git a/webtools/bugzilla/Bugzilla/Search.pm b/webtools/bugzilla/Bugzilla/Search.pm index 73d95c5242d6..de40d47e04c4 100644 --- a/webtools/bugzilla/Bugzilla/Search.pm +++ b/webtools/bugzilla/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)});