feat: automatically assign rooms only for unique room type selection
This commit is contained in:
@@ -254,6 +254,10 @@ class Step2Controller extends AbstractController
|
||||
|
||||
/**
|
||||
* Automatically assigns participants to rooms if they don't have room assignments yet.
|
||||
*
|
||||
* Note: Auto-assignment only occurs when exactly one room type is selected.
|
||||
* With multiple room types, users must manually select rooms to avoid UX issues
|
||||
* with having to unselect preassigned rooms in individual participant forms.
|
||||
*/
|
||||
private function autoAssignRoomsIfNeeded(BookingDto $bookingCreateDto): void
|
||||
{
|
||||
@@ -270,5 +274,4 @@ class Step2Controller extends AbstractController
|
||||
$this->roomAssignmentService->assignParticipantsToRooms($bookingCreateDto);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user