fixed: warning message "usagers du parcours" does show only for current

members for a course
This commit is contained in:
Julien Fastré 2022-07-11 15:26:04 +02:00
parent 09b2c9a14e
commit a79a2b6ee9

View File

@ -215,7 +215,7 @@ class AccompanyingCourseController extends Controller
// get persons without household // get persons without household
$withoutHousehold = []; $withoutHousehold = [];
foreach ($accompanyingCourse->getParticipations() as $p) { foreach ($accompanyingCourse->getCurrentParticipations() as $p) {
if (false === $p->getPerson()->isSharingHousehold()) { if (false === $p->getPerson()->isSharingHousehold()) {
$withoutHousehold[] = $p->getPerson(); $withoutHousehold[] = $p->getPerson();
} }