diff --git a/src/QueryObjectDataSource.php b/src/QueryObjectDataSource.php index 7c950d5..89a3839 100644 --- a/src/QueryObjectDataSource.php +++ b/src/QueryObjectDataSource.php @@ -136,7 +136,9 @@ public function setData($data) { public function filter(array $filters): void { if (is_callable($this->filterCallback)) { - call_user_func($this->filterCallback, $this->queryObject, $filters); + call_user_func($this->filterCallback, $this->queryObject, array_filter($filters, function (Filter $_filter) { + return !$_filter->getConditionCallback(); + })); } /** @var Filter $filter */