Skip to content

Commit

Permalink
fixed skip parents type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Nov 12, 2018
1 parent 1199e4a commit 2386916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filter/Type/SkipParentsType.php
Expand Up @@ -50,7 +50,7 @@ public function buildQuery(FilterQueryBuilder $builder, FilterConfigElementModel
$andNotNull = $builder->expr()->andX();
$andNotNull->add($builder->expr()->isNotNull($parentField))->add($builder->expr()->neq($parentField, 0))->add($builder->expr()->neq($parentField, '""'));

$notIn = $builder->expr()->notIn($parentField, $parentIds);
$notIn = $builder->expr()->notIn($filter['dataContainer'].'.id', $parentIds);

$or = $builder->expr()->orX();
$or->add($andNotNull);
Expand Down

0 comments on commit 2386916

Please sign in to comment.