From 47d23d11fb9f3f717ef974bb72b3067f643fb4d6 Mon Sep 17 00:00:00 2001 From: pawelpawlik Date: Tue, 5 Sep 2023 17:02:38 +0200 Subject: [PATCH] IBX-6481 change keys in returned array by VersionValidator:validate() --- src/lib/Repository/Validator/VersionValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Repository/Validator/VersionValidator.php b/src/lib/Repository/Validator/VersionValidator.php index 5971c1b4cb..c9e5580209 100644 --- a/src/lib/Repository/Validator/VersionValidator.php +++ b/src/lib/Repository/Validator/VersionValidator.php @@ -73,7 +73,7 @@ public function validate( if ($fieldType->isEmptyValue($fieldValue)) { if ($fieldDefinition->isRequired) { - $allFieldErrors[$fieldDefinition->identifier][$languageCode] = new ValidationError( + $allFieldErrors[$fieldDefinition->id][$languageCode] = new ValidationError( "Value for required field definition '%identifier%' with language '%languageCode%' is empty", null, ['%identifier%' => $fieldDefinition->identifier, '%languageCode%' => $languageCode],