Skip to content

Commit 51327f2

Browse files
committed
Always show errors if there are any
1 parent d02ef67 commit 51327f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fieldlayoutelements/BaseField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ public function formHtml(?ElementInterface $element = null, bool $static = false
430430
'translatable' => $translatable,
431431
'translationDescription' => $this->translationDescription($element, $static),
432432
'actionMenuItems' => $actionMenuItems,
433-
'errors' => !$static ? $this->errors($element) : [],
433+
// show errors regardless of whether the field is static
434+
'errors' => $this->errors($element),
434435
]);
435436
}
436437

0 commit comments

Comments
 (0)