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