mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Form: Fix that form titles are missing
The description may not be set at the time loadDefaultDecorators() is called.
This commit is contained in:
parent
2d9d3a0788
commit
d31b60102e
@ -1206,9 +1206,10 @@ class Form extends Zend_Form
|
|||||||
'form' => $this
|
'form' => $this
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
if ($this->getDescription() !== null) {
|
$this->addDecorator('Description', array('tag' => 'h1'));
|
||||||
$this->addDecorator('Description', array('tag' => 'h1', 'escape' => !$this->getUseFormAutosubmit()))
|
if ($this->getUseFormAutosubmit()) {
|
||||||
->addDecorator(
|
$this->getDecorator('Description')->setEscape(false);
|
||||||
|
$this->addDecorator(
|
||||||
'HtmlTag',
|
'HtmlTag',
|
||||||
array(
|
array(
|
||||||
'tag' => 'div',
|
'tag' => 'div',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user