Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

iterate over combined array of getErrors and getMessages #30

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 12, 2012
  1. @Mischosch
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  library/EasyBib/Form.php
View
3  library/EasyBib/Form.php
@@ -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;
}
Something went wrong with that request. Please try again.