Skip to content

Commit

Permalink
CRM-8025: Consumer is being interrupted with "Invalid filters structu…
Browse files Browse the repository at this point in the history
…re" error (#9107)

- remove data-validation-optional
 - check empty filters in FilterProcessor
  • Loading branch information
Maksym Perepelytsya authored and yurio committed Mar 29, 2017
1 parent 3ca299d commit aaa0a63
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aaa0a63

Please sign in to comment.