Skip to content

Commit

Permalink
[BUGFIX] Fix problem with identity argument in v:render.cache
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Feb 3, 2023
1 parent 7d14504 commit acb8626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Render/CacheViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function renderStatic(
RenderingContextInterface $renderingContext
) {
$identity = $arguments['identity'];
if (ctype_alnum(preg_replace('/[\-_]/i', '', $identity))) {
if (!ctype_alnum(preg_replace('/[\-_]/i', '', $identity))) {
if ($identity instanceof DomainObjectInterface) {
$identity = get_class($identity) . static::ID_SEPARATOR . $identity->getUid();
} elseif (method_exists($identity, '__toString')) {
Expand Down

0 comments on commit acb8626

Please sign in to comment.