From 3b3855089cd469c638a51b3fe7cb3ccda64c2325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 8 Jun 2021 19:42:29 +0200 Subject: [PATCH] fix social action render --- .../ChillPersonBundle/Entity/SocialWork/SocialAction.php | 5 +++++ .../Resources/views/Entity/social_action.html.twig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php index 0c83ab845..3f5eb14ed 100644 --- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php +++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php @@ -102,6 +102,11 @@ class SocialAction return $this->parent; } + public function hasParent(): bool + { + return $this->getParent() instanceof self; + } + public function setParent(?self $parent): self { $this->parent = $parent; diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Entity/social_action.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Entity/social_action.html.twig index 822595c48..246ddd1ea 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Entity/social_action.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Entity/social_action.html.twig @@ -7,7 +7,7 @@ {%- endfor -%} - {{ socialIssue.title|localize_translatable_string }} + {{ socialAction.title|localize_translatable_string }}