Change syntax of check on null for closing motive

This commit is contained in:
Julie Lenaerts 2024-02-21 20:14:18 +01:00
parent 4a2078dc65
commit 97f2c75de8

View File

@ -35,7 +35,7 @@
<div class="warnings">
<div class="alert alert-danger">
<h2>{{ 'This course is closed'|trans }}</h2>
{% if accompanyingCourse.closingMotive %}
{% if accompanyingCourse.closingMotive is not same as null %}
<p>
{{ 'Closing motive'|trans }} : {{ accompanyingCourse.closingMotive.name|localize_translatable_string }}
</p>