Skip to content

Commit

Permalink
Merge pull request #85 from bcgov/Fix-default-label-radios-ADO-2300
Browse files Browse the repository at this point in the history
Fix bug 2300
  • Loading branch information
saranyaviswam authored Jan 25, 2025
2 parents 977344b + 862b3f0 commit f487c49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Filament/Forms/Resources/FormVersionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public static function form(Form $form): Form
'validations' => [],
'conditionals' => [],
'instance_id' => 'nestedField' . $index + 1,
'customize_label' => 'default',
];
})->toArray();
$set('form_fields', $formFields);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ protected function mutateFormDataBeforeFill(array $data): array
'form_field_id' => $field->form_field_id,
'label' => $field->label,
'custom_label' => $field->custom_label ?? $formField->label,
'customize_label' => $field->custom_label ?? null,
'customize_label' => $field->customize_label ?? null,
'custom_data_binding_path' => $field->custom_data_binding_path ?? $formField->data_binding_path,
'customize_data_binding_path' => $field->custom_data_binding_path ?? null,
'custom_data_binding' => $field->custom_data_binding ?? $formField->data_binding,
Expand Down

0 comments on commit f487c49

Please sign in to comment.