Anomalie #4689
Secretary/Jinja2 templates: >1 crashes
Start date:
08/27/2019
Due date:
% Done:
0%
Estimated time:
Difficulté:
Description
Only for number, it's ok with a count
.
For example
{% if item.find_number > 1 %}Nombre de mobilier : {{item.find_number}}{% endif %}
makes the document generation to crash, but
{% if adminact_treatment_file_associated_basket_items|count > 1 %}s{% else %}{% endif %}
ends well.
History
Updated by Valérie-Emma Leroux almost 3 years ago
- Status changed from Nouveau to Résolu
- Description updated (diff)
Works OK with int
:
{% if item.find_number|int > 1 %}Nombre de mobilier : {{item.find_number}}{% endif %}