Fix issues with inexisting fields

This commit is contained in:
2024-02-08 21:00:16 +01:00
parent 6e2cce9531
commit cf7338b690
3 changed files with 77 additions and 67 deletions

View File

@@ -49,8 +49,12 @@
<tr>
<th>{{ 'event.fields.location'|trans }}</th>
<td>
{{ event.location.name }}
{% if event.location.address is not same as(null) %}{{ event.location.address|chill_entity_render_box({'multiline': false, 'with_picto': (event.location.name is empty), 'details_button': true}) }}{% endif %}
{% if event.location is not null %}
{{ event.location.name }}
{% if event.location.address is not same as(null) %}{{ event.location.address|chill_entity_render_box({'multiline': false, 'with_picto': (event.location.name is empty), 'details_button': true}) }}{% endif %}
{% else %}
<span class="chill-no-data-statement">{{ 'Any location for this event'|trans }}</span>
{% endif %}
</td>
</tr>
</tbody>