diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig index 4ad66ce1d..0cd5960bf 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/Entity/thirdparty.html.twig @@ -92,14 +92,16 @@ {{ options['customButtons']['before'] }} {% endif %} - {%- if options['customButtons']['replace'] is not defined and is_granted('CHILL_3PARTY_3PARTY_SHOW', thirdparty) -%} + {% if options['customButtons']['replace'] is defined %} + {{ options['customButtons']['replace'] }} + {% elseif is_granted('CHILL_3PARTY_3PARTY_SHOW', thirdparty) %}