feat: load availability data once per booking session
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user