Skip to content

Commit

Permalink
fix: Do not generate log URL when no entityId is set in log
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jul 12, 2023
1 parent 10dddcd commit 997ee20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/src/TwigExtension/LogExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getFunctions(): array

public function getEditPath(?object $log): ?string
{
if (!($log instanceof Log)) {
if (!($log instanceof Log) || null === $log->getEntityId()) {
return null;
}

Expand Down

0 comments on commit 997ee20

Please sign in to comment.