295 resume retouches

This commit is contained in:
2021-11-29 13:48:18 +00:00
committed by Julien Fastré
parent 3c70cec396
commit 5d9ceb5757
30 changed files with 590 additions and 339 deletions

View File

@@ -354,8 +354,9 @@ class Activity implements HasCenterInterface, HasScopeInterface, AccompanyingPer
if (null !== $this->accompanyingPeriod) {
$personsNotAssociated = [];
// TODO better semantic with: return $this->persons->filter(...);
foreach ($this->persons as $person) {
if (!in_array($person, $this->getPersonsAssociated())) {
if ($this->accompanyingPeriod->getOpenParticipationContainsPerson($person) === null) {
$personsNotAssociated[] = $person;
}
}