fix: assign mandatory services when applying dummy data

This commit is contained in:
Björn Fromme
2026-03-16 12:03:00 +01:00
parent 69f16b59cb
commit 11ff2b9084
@@ -157,6 +157,11 @@ class Step2Controller extends AbstractController
;
if (true === $form->isSubmitted() && true === $isDummyDataFill) {
$this->dummyDataFillService->fill($bookingDto->participants[$index], $index);
// Keep behavior consistent with cards view: newly filled participant data
// (especially dateOfBirth) must immediately trigger mandatory service preselection.
$this->bookingService->preselectMandatoryServices($bookingDto);
$bookingDto->bookingStatus = Constants::BOOKING_STATUS_OPEN;
$this->bookingService->saveBookingDto($request, $bookingDto, BookingDto::MODE_CREATE);