Skip to content

Commit

Permalink
fix: Error Messages Not Displayed for Nested Array Fields in Form Inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu818 committed Nov 27, 2024
1 parent dbc65ae commit 9932a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Form/DocumentContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function error(string $field): array
$errors = $entity->getError(array_pop($parts));
}

if (!$errors && $entityErrors && !is_array($entity)) {
if (!$errors && $entityErrors) {
$errors = Hash::extract($entityErrors, $field) ?: [];
}

Expand Down

0 comments on commit 9932a3f

Please sign in to comment.