]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 179697 - OR terms need extra level of bracketing
authorbbaetz%student.usyd.edu.au <>
Thu, 14 Nov 2002 19:11:18 +0000 (19:11 +0000)
committerbbaetz%student.usyd.edu.au <>
Thu, 14 Nov 2002 19:11:18 +0000 (19:11 +0000)
r=myk, a=justdave

Bugzilla/Search.pm

index 11dbb57dab22501dc317e4cf2f60c632cda4c834..c80bb99e70941068812c29c07fa2feffe9e70aa9 100644 (file)
@@ -883,6 +883,7 @@ sub init {
                 }
             }
             if (@orlist) {
+                @orlist = map("($_)", @orlist) if (scalar(@orlist) > 1);
                 push(@andlist, "(" . join(" OR ", @orlist) . ")");
             }
         }