Skip to content

Commit

Permalink
[BUGFIX] SelectCategory.php: Cast $value to string (#156)
Browse files Browse the repository at this point in the history
If $value is set bei "getId()" in line 73, it causes an error within "trim()" in line 73, because it's an integer not a string.
  • Loading branch information
MarkTro authored and 80Quattro committed Feb 2, 2024
1 parent 245e4b2 commit a1e8487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function addCondition(AbstractFilterDefinitionType $filterDefinition, Pro
} elseif (empty($value) && !$isReload && method_exists($filterDefinition, 'getPreSelect')) {
$value = $filterDefinition->getPreSelect();
if ($value instanceof ElementInterface) {
$value = $value->getId();
$value = (string)$value->getId();
}
}

Expand Down

0 comments on commit a1e8487

Please sign in to comment.