From: bbaetz%student.usyd.edu.au <> Date: Thu, 14 Nov 2002 19:11:18 +0000 (+0000) Subject: Bug 179697 - OR terms need extra level of bracketing X-Git-Tag: bugzilla-2.17.2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7df3921113790a4eca4ff363e5f9577e72ac761c;p=thirdparty%2Fbugzilla.git Bug 179697 - OR terms need extra level of bracketing r=myk, a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 11dbb57dab..c80bb99e70 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -883,6 +883,7 @@ sub init { } } if (@orlist) { + @orlist = map("($_)", @orlist) if (scalar(@orlist) > 1); push(@andlist, "(" . join(" OR ", @orlist) . ")"); } }