Skip to content

Commit

Permalink
Render form validation errors with arguments (#764)
Browse files Browse the repository at this point in the history
Render form validation errors with arguments
  • Loading branch information
pjeweb committed Sep 12, 2024
1 parent a2bd9a5 commit 005b867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/XClass/Controller/FormFrontendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 005b867

Please sign in to comment.