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

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

View File

@ -0,0 +1,5 @@
kind: Fixed
body: 'View a third party: avoid errors when a contact has a civility'
time: 2023-09-28T12:09:10.199359071+02:00
custom:
Issue: "164"

View File

@ -25,7 +25,7 @@
<dt>{{ 'Name'|trans }}</dt> <dt>{{ 'Name'|trans }}</dt>
<dd> <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 }} {{ thirdParty.firstname ~ ' ' ~ thirdParty.name }}
</dd> </dd>