From 702a9c95230c77b758da4a28a9312bfc6f67d97d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 30 Jun 2015 13:22:54 +0200 Subject: [PATCH] Form: Show notifications and errors below any descriptions They might be textually related to one or more descriptions. refs #8983 --- library/Icinga/Web/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 679091fde..c450aaef6 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -1043,9 +1043,9 @@ class Form extends Zend_Form ->addDecorator('HtmlTag', array('tag' => 'div', 'class' => 'header')); } - $this->addDecorator('FormErrors', array('onlyCustomFormErrors' => true)) + $this->addDecorator('FormDescriptions') ->addDecorator('FormNotifications') - ->addDecorator('FormDescriptions') + ->addDecorator('FormErrors', array('onlyCustomFormErrors' => true)) ->addDecorator('FormElements') //->addDecorator('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')) ->addDecorator('Form');