Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

iterate over combined array of getErrors and getMessages #30

Merged
merged 1 commit into from Sep 13, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion library/EasyBib/Form.php
Expand Up @@ -106,7 +106,8 @@ public function buildBootstrapErrorDecorators()
$subForms = $this->getSubForms();
$styleClass = 'error';

foreach ($this->getErrors() as $key=>$errors) {
$errors = array_merge($this->getErrors(), $this->getMessages());
foreach ($errors AS $key=>$errors) {
if (empty($errors)) {
continue;
}
Expand Down