change test for the period's job in twig

This commit is contained in:
Julien Fastré 2022-06-16 22:06:33 +02:00
parent 832da83b27
commit a947b9defb

View File

@ -14,7 +14,7 @@
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_UPDATE', period) %}
<div class="item-col item-meta">
{% set job_id = null %}
{% if period.job is defined %}
{% if period.job is not null %}
{% set job_id = period.job.id %}
{% endif %}
<span