feat: auto-booking services
addresses #869cfcptv
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user