[ThirdParty] Fix display of civility in page "view"

https://gitlab.com/Chill-Projet/chill-bundles/-/issues/164
This commit is contained in:
2023-09-28 12:12:17 +02:00
parent 5562f418a5
commit 74e25e706e
2 changed files with 6 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
<dt>{{ 'Name'|trans }}</dt>
<dd>
{% if thirdParty.isLeaf == true %}{{ thirdParty.civility }}{% endif %}
{% if thirdParty.isLeaf == true and thirdParty.civility is not same as null %}{{ thirdParty.civility.name|localize_translatable_string }}{% endif %}
{{ thirdParty.firstname ~ ' ' ~ thirdParty.name }}
</dd>