Skip to content

Commit

Permalink
[BUGFIX] Ensure, that the ID to add/remove from the list is an integer
Browse files Browse the repository at this point in the history
Fluid will take care of type casting if the ViewHelper is called non-statically, but does not convert any argument if it is called statically
  • Loading branch information
vertexvaar committed Apr 12, 2024
1 parent 80ced4c commit 7850073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function renderStatic(
}

$allArguments = (array)$arguments['additionalParams'];
$categoryId = $arguments['item'];
$categoryId = (int)$arguments['item'];

$categoryList = $arguments['list'];
if ($arguments['mode'] === 'add') {
Expand Down

0 comments on commit 7850073

Please sign in to comment.