diff --git a/database/migrations/2024_04_16_233540_add_allowcustom_field.php b/database/migrations/2024_04_16_233540_add_allowcustom_field.php index 3dd007e7..96b1b6aa 100644 --- a/database/migrations/2024_04_16_233540_add_allowcustom_field.php +++ b/database/migrations/2024_04_16_233540_add_allowcustom_field.php @@ -19,8 +19,8 @@ return new class extends Migration /** @var Collection */ $fields = $section->fields; $section->fields = collect($fields)->map(function ($field) { - if ($field->type === 'DropdownField' || $field->type === 'RadioField') { - $field->allowcustom = false; + if ($field->type === 'GroupField') { + $field->hasEmptyOption = false; } return $field; })->all(); @@ -36,8 +36,8 @@ return new class extends Migration /** @var Collection */ $fields = $section->fields; $section->fields = collect($fields)->map(function ($field) { - if ($field->type === 'DropdownField' || $field->type === 'RadioField') { - $field->allowcustom = false; + if ($field->type === 'GroupField') { + $field->hasEmptyOption = false; } return $field; })->all();