From 36b195b78a6afbe3bdf22d443147c9f05d01f4bc Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 25 Apr 2024 22:01:55 +0200 Subject: [PATCH] Fix empty-option-value --- app/Form/Fields/GroupField.php | 4 ++-- packages/adrema-form | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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