From f37ae8e6e47ed1f74174ff9ca500475709e7cee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kud=C4=9Blka?= Date: Wed, 8 Jun 2022 08:39:58 +0200 Subject: [PATCH] Update QueryObjectDataSource.php --- src/QueryObjectDataSource.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */