From 8512a5e1bcea1fe55f32431f312200d164ee627e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 20 Apr 2022 11:24:20 +0200 Subject: [PATCH] person list with period: use sameas twig operator instead of using '==' operator to introduce requestor --- CHANGELOG.md | 1 + .../Resources/views/Person/list_with_period.html.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c85e41af..0f26e64a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to * [Activity form] invert 'incoming' and 'receiving' in Activity form * [Activity form] keep the same order for 'attendee' field in new and edit form +* [list with period] use "sameas" test operator to introduce requestor in list ## Test releases diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig index e705ab499..c43806a71 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig @@ -99,7 +99,7 @@ {% endif %}
- {% if acp.requestoranonymous == false and acp.requestorPerson == person %} + {% if acp.requestoranonymous == false and acp.requestorPerson is same as(person) %} {{ 'Requestor'|trans({'gender': person.gender}) }}