diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 91e430a2f..98cb3fe61 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -687,7 +687,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI $result = new ArrayCollection(); if ($asParticipantOpen) { - foreach ($this->getOpenedParticipations() + foreach ($this->getAccompanyingPeriodParticipations() ->map(fn (AccompanyingPeriodParticipation $app) => $app->getAccompanyingPeriod()) as $period ) { 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 aaaac1459..46359b15f 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 @@ -93,6 +93,11 @@ {{ 'course.draft'|trans }} {% endif %} + {% if acp.step == 'CLOSED' %} +
+ {{ 'course.closed'|trans }} +
+ {% endif %} {% if acp.requestorPerson == person %}
diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index e8474fdfb..3d5051894 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -216,6 +216,7 @@ Some peoples does not belong to any household currently. Add them to an househol Add to household now: Ajouter à un ménage Any resource for this accompanying course: Aucun interlocuteur privilégié pour ce parcours course.draft: Brouillon +course.closed: Clôturé Origin: Origine de la demande Delete accompanying period: Supprimer la période d'accompagnement Are you sure you want to remove the accompanying period "%id%" ?: Êtes-vous sûr de vouloir supprimer la période d'accompagnement %id% ?