fix: streamlined single room selection handling

This commit is contained in:
Björn Fromme
2025-10-28 16:12:27 +01:00
parent 5021f414d1
commit 3d694ed7eb
4 changed files with 36 additions and 18 deletions
@@ -262,9 +262,9 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
'required' => new ApplicantCondition(),
];
// Hide assignedRoomId field when only one room type is selected (auto-assigned by RoomAssignmentService)
// Render assignedRoomId field as static text when only one room type is selected (auto-assigned by RoomAssignmentService)
$this->fieldStateConditions['assignedRoomId'] = [
'hidden' => new SingleRoomTypeCondition(),
'static_text' => new SingleRoomTypeCondition(),
];
// Example field state conditions would be registered here