bugfix in parcours display if deathdate of associated person is not defined (ex. for thirdparty)

This commit is contained in:
Julie Lenaerts 2022-01-21 17:00:04 +01:00
parent c736c2b5bb
commit cdbae1eade
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to
<!-- write down unreleased development here --> <!-- write down unreleased development here -->
* [person] name suggestions within create person form when person is created departing from a search input (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/377) * [person] name suggestions within create person form when person is created departing from a search input (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/377)
* [parcours] bugfix if deathdate is not defined (eg. for a thirdparty) parcours is still displayed. Gave error before.
## Test releases ## Test releases

View File

@ -9,7 +9,7 @@
action: 'show', displayBadge: true, action: 'show', displayBadge: true,
targetEntity: { name: type, id: entity.id }, targetEntity: { name: type, id: entity.id },
buttonText: entity|chill_entity_render_string, buttonText: entity|chill_entity_render_string,
isDead: entity.deathdate is not null, isDead: entity.deathdate is defined and entity.deathdate is not null,
parent: parent parent: parent
} %} } %}
{% endmacro %} {% endmacro %}