Skip to content

Commit

Permalink
Merge pull request #1939 from BabovicT/patch-14
Browse files Browse the repository at this point in the history
Fixed wrong categories returned when concatenator is AND
  • Loading branch information
dpfaffenbauer committed Mar 25, 2022
2 parents 468824a + 447a1cf commit 78a443a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public function prepareValuesForRendering(FilterConditionInterface $condition, F
$field = 'parentCategoryIds';
}

$concatenator = $condition->getConfiguration()['concatenator'] ?: 'OR';
$parsedValues = [];
$rawValues = $list->getGroupByValues($field, true);
$rawValues = $list->getGroupByValues($field, true, $concatenator == 'AND' ? false : true);

foreach ($rawValues as $v) {
$explode = explode(',', $v['value']);
Expand Down

0 comments on commit 78a443a

Please sign in to comment.