diff --git a/library/Icinga/Web/Form/Element/Note.php b/library/Icinga/Web/Form/Element/Note.php index 5dd489f0d6..78881ab449 100644 --- a/library/Icinga/Web/Form/Element/Note.php +++ b/library/Icinga/Web/Form/Element/Note.php @@ -5,23 +5,13 @@ namespace Icinga\Web\Form\Element; use Zend_Form_Element; +use Icinga\Web\Form; /** * A note */ class Note extends Zend_Form_Element { - /** - * Disable default decorators - * - * \Icinga\Web\Form sets default decorators for elements. - * - * @var bool - * - * @see \Icinga\Web\Form::__construct() For default element decorators. - */ - protected $_disableLoadDefaultDecorators = true; - /** * Form view helper to use for rendering * @@ -36,6 +26,15 @@ class Note extends Zend_Form_Element */ protected $_ignore = true; + /** + * (non-PHPDoc) + * @see Zend_Form_Element::init() For the method documentation. + */ + public function init() + { + $this->setDecorators(Form::$defaultElementDecorators); + } + /** * Validate element value (pseudo) *