From d1e958fe36b5c092ec87d1b87a69f97586fd149d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= Date: Tue, 24 Mar 2026 09:44:48 +0100 Subject: [PATCH] [BUGFIX] Show correct message on server side validation error The server side validation always returned the error message of `validationErrorUniqueDb` instead of the actual error message determined by the `ValidationService` if a server side validation error occurs. This was broken since the introduction of the `ValidationService` in 60e84770 `[BUGFIX] execute serversideValidator user after modifications` --- Classes/Domain/Service/ValidationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Service/ValidationService.php b/Classes/Domain/Service/ValidationService.php index 60c7bd3bc..53fd3d6fb 100644 --- a/Classes/Domain/Service/ValidationService.php +++ b/Classes/Domain/Service/ValidationService.php @@ -34,7 +34,7 @@ public function doServersideValidation(User $user, ServerRequestInterface $reque foreach ($errors as $error) { $validationErrors[] = GeneralUtility::makeInstance( FlashMessage::class, - LocalizationUtility::translate('validationErrorUniqueDb', 'femanager', $error->getArguments()), + LocalizationUtility::translate($error['message'], 'femanager', $error->getArguments()), $error->getTitle(), ContextualFeedbackSeverity::ERROR, );