Skip to content

Commit

Permalink
IBX-6481 change keys in returned array by VersionValidator:validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
papcio122 committed Sep 12, 2023
1 parent 5f8305e commit 47d23d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Repository/Validator/VersionValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 47d23d1

Please sign in to comment.