feat: remove room selection field entirely for single room type

addresses #869axcukn
This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent 38656e73c5
commit 37cda348b0
4 changed files with 56 additions and 13 deletions
@@ -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