fix: assign mandatory services when applying dummy data
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user