fix: applicant split in edit mode, drop create-mode agency checks
This commit is contained in:
1 parent
1ff293f41f
commit
5b75938c73
12 files changed
+167
-68
No files matched your search
@@ -153,12 +153,6 @@ class Step2ParticipantController extends AbstractController
|
||||
}
|
||||
$bookingDto = $result;
|
||||
|
||||
// Internal agency bookings are pre-populated with a non-travelling applicant already,
|
||||
// so the choice is neither offered nor accepted for them.
|
||||
if ($bookingDto->isInternalAgencyBooking()) {
|
||||
return $this->htmxRedirect($request, $this->generateUrl('app_booking_create_step_2'));
|
||||
}
|
||||
|
||||
$this->travelDataService->enrichWithFreshAvailabilities($bookingDto->travel);
|
||||
|
||||
// Captured before handleRequest(), which binds the new choice straight onto the DTO.
|
||||
@@ -227,7 +221,7 @@ class Step2ParticipantController extends AbstractController
|
||||
}
|
||||
$bookingDto = $result;
|
||||
|
||||
if (true === $bookingDto->applicantTravels || $bookingDto->isInternalAgencyBooking()) {
|
||||
if (true === $bookingDto->applicantTravels) {
|
||||
return $this->redirectToRoute('app_booking_create_step_2');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user