feat: load availability data once per booking session

This commit is contained in:
Björn Fromme committed 2026-03-16 12:00:56 +01:00
1 parent 8f542ff448
commit 12b69bd681
5 files changed
+11 -12

No files matched your search

@@ -168,9 +168,8 @@ class IndexController extends AbstractController
return $this->redirectToRoute('app_booking_edit', ['id' => $id]);
}
// Fetch fresh availabilities when entering participant form
// This ensures up-to-date data and populates cache for subsequent HTMX refreshes
$this->travelDataService->enrichWithFreshAvailabilities($bookingDto->travel, cached: false);
// Use cached availability data (populated during booking init)
$this->travelDataService->enrichWithFreshAvailabilities($bookingDto->travel);
// Create wrapper DTO for email uniqueness validation
$wrapper = new ParticipantEditDto(