#365 correct works counter in acc course summary

This commit is contained in:
juminet
2025-05-16 14:40:19 +00:00
committed by Julien Fastré
parent f207599d86
commit 2faf194b15
2 changed files with 2 additions and 3 deletions

View File

@@ -207,7 +207,6 @@ final class AccompanyingCourseController extends \Symfony\Bundle\FrameworkBundle
$works = $this->workRepository->findByAccompanyingPeriod(
$accompanyingCourse,
['startDate' => 'DESC', 'endDate' => 'DESC'],
3
);
$counters = [
@@ -220,7 +219,7 @@ final class AccompanyingCourseController extends \Symfony\Bundle\FrameworkBundle
'accompanyingCourse' => $accompanyingCourse,
'withoutHousehold' => $withoutHousehold,
'participationsByHousehold' => $accompanyingCourse->actualParticipationsByHousehold(),
'works' => $works,
'works' => \array_slice($works, 0, 3),
'activities' => \array_slice($activities, 0, 3),
'counters' => $counters,
]);