parent
daca017d96
commit
85560ebec2
|
@ -19,8 +19,8 @@ return new class extends Migration
|
|||
/** @var Collection<int, mixed> */
|
||||
$fields = $section->fields;
|
||||
$section->fields = collect($fields)->map(function ($field) {
|
||||
if ($field->type === 'GroupField') {
|
||||
$field->hasEmptyOption = false;
|
||||
if ($field->type === 'DropdownField' || $field->type === 'RadioField') {
|
||||
$field->allowcustom = false;
|
||||
}
|
||||
return $field;
|
||||
})->all();
|
||||
|
@ -36,8 +36,8 @@ return new class extends Migration
|
|||
/** @var Collection<int, mixed> */
|
||||
$fields = $section->fields;
|
||||
$section->fields = collect($fields)->map(function ($field) {
|
||||
if ($field->type === 'GroupField') {
|
||||
$field->hasEmptyOption = false;
|
||||
if ($field->type === 'DropdownField' || $field->type === 'RadioField') {
|
||||
$field->allowcustom = false;
|
||||
}
|
||||
return $field;
|
||||
})->all();
|
||||
|
|
Loading…
Reference in New Issue