From 005b86779b856c676702314192e799c4be316541 Mon Sep 17 00:00:00 2001 From: Paul Golmann Date: Thu, 12 Sep 2024 10:15:13 +0200 Subject: [PATCH] Render form validation errors with arguments (#764) Render form validation errors with arguments --- Classes/XClass/Controller/FormFrontendController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/XClass/Controller/FormFrontendController.php b/Classes/XClass/Controller/FormFrontendController.php index e135dc6f..bc62fb04 100644 --- a/Classes/XClass/Controller/FormFrontendController.php +++ b/Classes/XClass/Controller/FormFrontendController.php @@ -241,7 +241,7 @@ private function prepareErrors(array $errors, string $formIdentifier): ?array $parsedErrors = []; foreach ($errors as $key => $errorObj) { - $parsedErrors[str_replace($formIdentifier . '.', '', $key)] = $errorObj[0]->getMessage(); + $parsedErrors[str_replace($formIdentifier . '.', '', $key)] = $errorObj[0]->render(); } return count($parsedErrors) ? $parsedErrors : null;