Project

General

Profile

Anomalie #4689

Secretary/Jinja2 templates: >1 crashes

Added by Valérie-Emma Leroux over 2 years ago. Updated over 2 years ago.

Status:
Résolu
Priority:
Bas
Assignee:
Category:
-
Target version:
-
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

#1

Updated by Valérie-Emma Leroux over 2 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 %}

Also available in: Atom PDF