fix: streamlined single room selection handling

This commit is contained in:
Björn Fromme committed 2026-03-16 11:59:11 +01:00
1 parent 43823dbda1
commit beee44a10e
4 files changed
+36 -18

No files matched your search

@@ -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