diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 6 |
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)}); |