From 2ded545a94e3e0993ea7d51ce569e2e53e189b0c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 4 Nov 2024 23:55:57 +0100 Subject: [PATCH] Fix error handling for mailgateway forms --- modules/Mailgateway/Components/Form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Mailgateway/Components/Form.php b/modules/Mailgateway/Components/Form.php index 289d374d..0895c6be 100644 --- a/modules/Mailgateway/Components/Form.php +++ b/modules/Mailgateway/Components/Form.php @@ -36,7 +36,7 @@ class Form extends Component 'type' => 'Typ', 'name' => 'Beschreibung', 'domain' => 'Domain', - ...$this->type ? collect($this->type::fieldNames())->mapWithKeys(fn ($attribute, $key) => ["params.{$key}" => $attribute]) : [], + ...$this->type ? collect($this->type::fieldNames())->mapWithKeys(fn ($attribute, $key) => ["type.{$key}" => $attribute]) : [], ]; } @@ -104,11 +104,11 @@ class Form extends Component @foreach($this->fields() as $index => $field) @endforeach