mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Make the form in view scripts accessible using $form instead of $element
refs #5525
This commit is contained in:
parent
98b2bce15e
commit
65dd3f9a5b
@ -479,7 +479,10 @@ class Form extends Zend_Form
|
|||||||
$decorators = $this->getDecorators();
|
$decorators = $this->getDecorators();
|
||||||
if (empty($decorators)) {
|
if (empty($decorators)) {
|
||||||
if ($this->viewScript) {
|
if ($this->viewScript) {
|
||||||
$this->addDecorator('ViewScript', array('viewScript' => $this->viewScript));
|
$this->addDecorator('ViewScript', array(
|
||||||
|
'viewScript' => $this->viewScript,
|
||||||
|
'form' => $this
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
$this->addDecorator('FormElements')
|
$this->addDecorator('FormElements')
|
||||||
//->addDecorator('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form'))
|
//->addDecorator('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user