From d31b60102ed841d457f4a715e0959b4ffbce5b11 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 21 Aug 2015 14:19:51 +0200 Subject: [PATCH] Form: Fix that form titles are missing The description may not be set at the time loadDefaultDecorators() is called. --- library/Icinga/Web/Form.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index fd8812c6c..8dd3d1b7a 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -1206,9 +1206,10 @@ class Form extends Zend_Form 'form' => $this )); } else { - if ($this->getDescription() !== null) { - $this->addDecorator('Description', array('tag' => 'h1', 'escape' => !$this->getUseFormAutosubmit())) - ->addDecorator( + $this->addDecorator('Description', array('tag' => 'h1')); + if ($this->getUseFormAutosubmit()) { + $this->getDecorator('Description')->setEscape(false); + $this->addDecorator( 'HtmlTag', array( 'tag' => 'div',