feat: remove room selection field entirely for single room type

addresses #869axcukn
This commit is contained in:
Björn Fromme committed 2025-10-23 10:49:14 +02:00
1 parent 39d944351c
commit bb630da5ed
4 files changed
+56 -13

No files matched your search

@@ -205,9 +205,9 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
'required' => new ApplicantCondition(),
];
// Make assignedRoomId readonly when only one room type is selected
// Hide assignedRoomId field when only one room type is selected (auto-assigned by RoomAssignmentService)
$this->fieldStateConditions['assignedRoomId'] = [
'readonly' => new SingleRoomTypeCondition(),
'hidden' => new SingleRoomTypeCondition(),
];
// Example field state conditions would be registered here