summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-13 22:39:44 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-13 22:39:44 +0200
commita8c38773194820956e91b18735beb59e50a2686c (patch)
treea72318d2934d8a6f90fcf6e3b2b9ebd7984127dd
parent61ae8e8bdab6c60b7824d46615a37aa359a79e1a (diff)
downloadbugzilla-a8c38773194820956e91b18735beb59e50a2686c.tar.gz
bugzilla-a8c38773194820956e91b18735beb59e50a2686c.tar.xz
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.)
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
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"};