{% set duplicates = [duplicateNode]|merge(duplicateNode.potentialDuplicates) %}
{% if duplicates|length > 1 %}
{% for duplicate in duplicates %}
{{ duplicate.name }}
{% if duplicate.sourceKey %} ({{ duplicate.sourceKey }}){% endif %}
- Maj {{ duplicate.updatedAt|date("d/m/Y") }}
{% if duplicate.isDeleted %}
Cet élément a été supprimé. L'élément fusionné restera en status supprimé
{% endif %}
{% for prop in config.duplicates.fieldsInvolvedInDetection %}
{% if prop != 'name' %}
{% set value = duplicate.getProperty(prop) %}
{% if value %}
{{ prop|capitalize }} : {{ value }}
{% endif %}
{% endif %}
{% endfor %}
{{duplicate.optionsString }}
{# Address #}
{% if duplicate.address.getFormatedAddress %}
Adresse{{ duplicate.address.getFormatedAddress }}
{% endif %}
{# Other Attributes #}
{% for key, data in duplicate.data %}
{% if data and key not in config.duplicates.fieldsInvolvedInDetection %}
{{ key }}
{% if data is iterable %}
{% for subkey, subdata in data %}
{{ subkey }} : {{ subdata|json_encode }}
{% endfor %}
{% else %}
{{ data }}
{% endif %}