fix: assign mandatory services when applying dummy data
This commit is contained in:
1 parent
744cf55a7e
commit
021671a45f
1 file changed
+5
@@ -157,6 +157,11 @@ class Step2Controller extends AbstractController
|
|||||||
;
|
;
|
||||||
if (true === $form->isSubmitted() && true === $isDummyDataFill) {
|
if (true === $form->isSubmitted() && true === $isDummyDataFill) {
|
||||||
$this->dummyDataFillService->fill($bookingDto->participants[$index], $index);
|
$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;
|
$bookingDto->bookingStatus = Constants::BOOKING_STATUS_OPEN;
|
||||||
$this->bookingService->saveBookingDto($request, $bookingDto, BookingDto::MODE_CREATE);
|
$this->bookingService->saveBookingDto($request, $bookingDto, BookingDto::MODE_CREATE);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user