Skip to content

Commit 9932a3f

Browse files
committed
fix: Error Messages Not Displayed for Nested Array Fields in Form Inputs
#323
1 parent dbc65ae commit 9932a3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/View/Form/DocumentContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public function error(string $field): array
421421
$errors = $entity->getError(array_pop($parts));
422422
}
423423

424-
if (!$errors && $entityErrors && !is_array($entity)) {
424+
if (!$errors && $entityErrors) {
425425
$errors = Hash::extract($entityErrors, $field) ?: [];
426426
}
427427

0 commit comments

Comments
 (0)