Fix empty-option-value
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-04-25 22:01:55 +02:00
parent 8e3054da49
commit 36b195b78a
2 changed files with 3 additions and 3 deletions

View File

@ -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'],
];
}

@ -1 +1 @@
Subproject commit a6e3c2824d1339f907e1f0fd5ba6ddd86a7069ac
Subproject commit 1723135be5d35f3fac44a7243431c5a88b32f1f0