Skip to content

Commit

Permalink
Merge pull request #1967 from dpfaffenbauer/issues/index
Browse files Browse the repository at this point in the history
[IndexBundle] fix Argument #2 ($values) must be of type array, string given
  • Loading branch information
dpfaffenbauer authored Apr 22, 2022
2 parents c9ff33d + d8134ad commit 7d6ad67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function addCondition(FilterConditionInterface $condition, FilterInterfac
$values = null;
}

if (!empty($values)) {
if (is_array($values) && !empty($values)) {
$fieldName = $isPrecondition ? 'PRECONDITION_' . $field : $field;
$list->addCondition(new InCondition($field, $values), $fieldName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function addCondition(FilterConditionInterface $condition, FilterInterfac
$values = null;
}

if (!empty($values)) {
if (is_array($values) && !empty($values)) {
$fieldName = $isPrecondition ? 'PRECONDITION_' . $field : $field;

$list->addRelationCondition(new InCondition('dest', $values), $fieldName);
Expand Down

0 comments on commit 7d6ad67

Please sign in to comment.