mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
793a0a061f
commit
ced6e8f78f
@ -163,6 +163,16 @@ class LoggingForm extends Form
|
|||||||
$this->setSubmitLabel('{{SAVE_ICON}} Save Changes');
|
$this->setSubmitLabel('{{SAVE_ICON}} Save Changes');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isValid($data) {
|
||||||
|
foreach ($this->getElements() as $key => $element) {
|
||||||
|
// Initialize all empty elements with their default values.
|
||||||
|
if (!isset($data[$key])) {
|
||||||
|
$data[$key] = $element->getValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return parent::isValid($data);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a Zend_Config object containing the state defined in this form
|
* Return a Zend_Config object containing the state defined in this form
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user