feat: load availability data once per booking session
This commit is contained in:
@@ -138,9 +138,8 @@ class Step2Controller extends AbstractController
|
||||
throw $this->createNotFoundException(sprintf('Participant at index %d does not exist', $index));
|
||||
}
|
||||
|
||||
// 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 form with booking_context option
|
||||
$form = $this->createParticipantForm($bookingDto, $index);
|
||||
|
||||
Reference in New Issue
Block a user