From a3409b166dfa98aefe0399759d8776ef4c636a1f Mon Sep 17 00:00:00 2001
From: Eric Lippmann <eric.lippmann@netways.de>
Date: Mon, 6 Oct 2014 10:21:02 +0200
Subject: [PATCH] Note: Extend our FormElement class

---
 library/Icinga/Web/Form/Element/Note.php | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/library/Icinga/Web/Form/Element/Note.php b/library/Icinga/Web/Form/Element/Note.php
index 5dd489f0d..78881ab44 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)
      *