From a8c38773194820956e91b18735beb59e50a2686c Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Fri, 13 May 2011 13:39:44 -0700 Subject: Allow searches to specify whether the top-level criteria will be joined together with AND or OR. (This is part of bug 647649 but fixes a test failure caused by bug 656994 so is being checked in now.) --- Bugzilla/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 4b0260137..5c9d37d9a 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1555,7 +1555,7 @@ sub _custom_search { my @field_ids = map { /(\d+)/; $1 } @field_params; @field_ids = sort { $a <=> $b } @field_ids; - my $current_clause = new Bugzilla::Search::Clause(); + my $current_clause = new Bugzilla::Search::Clause($params->{j_top}); my @clause_stack; foreach my $id (@field_ids) { my $field = $params->{"f$id"}; -- cgit v1.2.3-24-g4f1b