mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
QuickForm: setValue instead of setDefaultValue
This commit is contained in:
parent
c38a9fcc12
commit
483ba3fbbd
@ -172,10 +172,13 @@ abstract class QuickForm extends Zend_Form
|
||||
public function addHidden($name, $value = null)
|
||||
{
|
||||
$this->addElement('hidden', $name);
|
||||
$this->getElement($name)->setDecorators(array('ViewHelper'));
|
||||
$el = $this->getElement($name);
|
||||
$el->setDecorators(array('ViewHelper'));
|
||||
if ($value !== null) {
|
||||
$this->setDefault($name, $value);
|
||||
$el->setValue($value);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user