feat: auto-booking services

addresses #869cfcptv
This commit is contained in:
Björn Fromme committed 2026-03-16 20:24:58 +01:00
1 parent 6d9265de0f
commit c510cbf590
19 files changed
+1829 -72

No files matched your search

@@ -122,13 +122,19 @@ trait ParticipantCardFlowTrait
int $index,
string $refreshRouteName,
): Response {
$refreshFormOptions = ['validation_groups' => false];
// Create form with validation disabled
$form = $this->createParticipantForm($bookingDto, $index, [
'validation_groups' => false,
]);
$form = $this->createParticipantForm($bookingDto, $index, $refreshFormOptions);
$form->handleRequest($request);
// Refresh endpoint is POST-only and always processes submitted participant data.
$this->bookingService->preselectDefaultServices($bookingDto);
// Recreate form so the rendered state reflects any new auto-preselections.
$form = $this->createParticipantForm($bookingDto, $index, $refreshFormOptions);
// Collect notifications from field handlers
$notifications = $this->collectAndClearNotifications($bookingDto);