fix: ensure mandatory services are selected

This commit is contained in:
Björn Fromme
2025-09-30 16:08:02 +02:00
parent 061317ed4c
commit c0e20a15fe
@@ -153,8 +153,9 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
$attributes = [];
// Make readonly for mandatory services (pre-selection handled by service layer)
// Make readonly and checked for mandatory services (pre-selection handled by service layer)
if (true === $service->mandatory) {
$attributes['checked'] = true;
$attributes['readonly'] = true;
$attributes['class'] = 'text-pink';
$attributes['data-tooltip'] = 'Diese Leistung ist nicht abwählbar';