From aaa0a63db1318ee61b1f76bb3d0805ab06dc2e01 Mon Sep 17 00:00:00 2001 From: Maksym Perepelytsya Date: Wed, 29 Mar 2017 13:47:54 +0300 Subject: [PATCH] CRM-8025: Consumer is being interrupted with "Invalid filters structure" error (#9107) - remove data-validation-optional - check empty filters in FilterProcessor --- .../Bundle/QueryDesignerBundle/QueryDesigner/FilterProcessor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/FilterProcessor.php b/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/FilterProcessor.php index a53791b61fc..75e951d8faf 100644 --- a/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/FilterProcessor.php +++ b/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/FilterProcessor.php @@ -42,6 +42,7 @@ public function filter(QueryBuilder $queryBuilder, WidgetOptionBag $widgetOption */ public function process(QueryBuilder $qb, $rootEntity, array $filters, $rootEntityAlias) { + $filters = array_filter($filters); if (!$filters) { // nothing to do return $qb;