diff --git a/app/Form/Fields/GroupField.php b/app/Form/Fields/GroupField.php index 076e0cc0..d617faff 100644 --- a/app/Form/Fields/GroupField.php +++ b/app/Form/Fields/GroupField.php @@ -17,7 +17,7 @@ class GroupField extends Field public ?string $parentField = null; public ?int $parentGroup = null; public bool $hasEmptyOption; - public string $emptyOptionValue; + public ?string $emptyOptionValue; public static function name(): string { @@ -31,7 +31,7 @@ class GroupField extends Field ['key' => 'parent_field', 'default' => null, 'rules' => ['parent_field' => 'present|nullable|string'], 'label' => 'Übergeordnetes Feld'], ['key' => 'parent_group', 'default' => null, 'rules' => ['parent_group' => ['present', 'nullable', Rule::in(Group::pluck('id')->toArray())]], 'label' => 'Übergeordnete Gruppierung'], ['key' => 'has_empty_option', 'default' => false, 'rules' => ['has_empty_option' => ['present', 'boolean']], 'label' => 'Leere Option erlauben'], - ['key' => 'empty_option_value', 'default' => '', 'rules' => ['empty_option_value' => ['present', 'string']], 'label' => 'Leere Option'], + ['key' => 'empty_option_value', 'default' => '', 'rules' => ['empty_option_value' => ['present', 'nullable', 'string']], 'label' => 'Leere Option'], ]; } diff --git a/packages/adrema-form b/packages/adrema-form index a6e3c282..1723135b 160000 --- a/packages/adrema-form +++ b/packages/adrema-form @@ -1 +1 @@ -Subproject commit a6e3c2824d1339f907e1f0fd5ba6ddd86a7069ac +Subproject commit 1723135be5d35f3fac44a7243431c5a88b32f1f0