Commit 87427294 by Carsten Brandt

fixed broken NOT condition in elasticsearch

parent 25bf486b
......@@ -227,7 +227,7 @@ class QueryBuilder extends \yii\base\Object
return count($parts) === 1 ? $parts[0] : ['and' => $parts];
}
private function buildNotCondition($operator, $operands, &$params)
private function buildNotCondition($operator, $operands)
{
if (count($operands) != 1) {
throw new InvalidParamException("Operator '$operator' requires exactly one operand.");
......@@ -235,7 +235,7 @@ class QueryBuilder extends \yii\base\Object
$operand = reset($operands);
if (is_array($operand)) {
$operand = $this->buildCondition($operand, $params);
$operand = $this->buildCondition($operand);
}
return [$operator => $operand];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment