Skip to content

Commit

Permalink
Avoid name collisions when using multiple forms
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jul 24, 2021
1 parent bb01d37 commit ee62f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/GetsFormFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protected function fields(): Collection
return [
'label' => __($field->get('display')),
'instructions' => __($field->get('instructions')),
'handle' => $field->handle(),
'handle' => "{$this->id}_{$field->handle()}",
'key' => 'data.' . $field->handle(),
'type' => $this->assignFieldType($field->get('type')),
'input_type' => $this->assignFieldInputType($field->get('type'), $field->get('input_type')),
Expand All @@ -37,7 +37,7 @@ protected function honeypot(): array
{
return [
'label' => Str::ucfirst($this->form->honeypot()),
'handle' => $this->form->honeypot(),
'handle' => "{$this->id}_{$this->form->honeypot()}",
'key' => 'data.' . $this->form->honeypot(),
];
}
Expand Down

0 comments on commit ee62f2a

Please sign in to comment.