person list with period: use sameas twig operator instead of using '==' operator to introduce requestor

This commit is contained in:
Julien Fastré 2022-04-20 11:24:20 +02:00
parent 7f97215fe9
commit 8512a5e1bc
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to
<!-- write down unreleased development here --> <!-- write down unreleased development here -->
* [Activity form] invert 'incoming' and 'receiving' in Activity form * [Activity form] invert 'incoming' and 'receiving' in Activity form
* [Activity form] keep the same order for 'attendee' field in new and edit 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 ## Test releases

View File

@ -99,7 +99,7 @@
{% endif %} {% endif %}
</div> </div>
<div class="ms-auto"> <div class="ms-auto">
{% if acp.requestoranonymous == false and acp.requestorPerson == person %} {% if acp.requestoranonymous == false and acp.requestorPerson is same as(person) %}
<span class="as-requestor badge bg-info" title="{{ 'Requestor'|trans|e('html_attr') }}"> <span class="as-requestor badge bg-info" title="{{ 'Requestor'|trans|e('html_attr') }}">
{{ 'Requestor'|trans({'gender': person.gender}) }} {{ 'Requestor'|trans({'gender': person.gender}) }}
</span> </span>