diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig index cdfc168b8..c926e78cc 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/view.html.twig @@ -1,7 +1,8 @@ {% extends "@ChillMain/layout.html.twig" %} {% set thirdParty = entity %} -{% set title_ = 'Show third party %name%'|trans({'%name%' : thirdParty.name }) %} +{% set name = thirdParty.firstname is not empty ? thirdParty.firstname ~ ' ' ~ thirdParty.name : thirdParty.name %} +{% set title_ = 'Show third party %name%'|trans({'%name%' : name }) %} {% block title title_ %}