From d109046bc0c10a701114b58d0aa2ee5b5f09bbac Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Apr 2014 09:27:37 +0200 Subject: [PATCH] Fix that the general and logging form cannot write configuration changes fixes #5952 --- application/forms/Config/GeneralForm.php | 4 ++-- application/forms/Config/LoggingForm.php | 4 ++-- library/Icinga/Web/Form.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/forms/Config/GeneralForm.php b/application/forms/Config/GeneralForm.php index ab3610ab8..3509ed7b9 100644 --- a/application/forms/Config/GeneralForm.php +++ b/application/forms/Config/GeneralForm.php @@ -412,10 +412,10 @@ class GeneralForm extends Form { $config = $this->getConfiguration(); if ($config->global === null) { - $config->global = new Zend_Config(array()); + $config->global = new Zend_Config(array(), true); } if ($config->preferences === null) { - $config->preferences = new Zend_Config(array()); + $config->preferences = new Zend_Config(array(), true); } $values = $this->getValues(); diff --git a/application/forms/Config/LoggingForm.php b/application/forms/Config/LoggingForm.php index c276ca1df..b0d970df8 100644 --- a/application/forms/Config/LoggingForm.php +++ b/application/forms/Config/LoggingForm.php @@ -192,10 +192,10 @@ class LoggingForm extends Form { $config = $this->getConfiguration(); if ($config->logging === null) { - $config->logging = new Zend_Config(array()); + $config->logging = new Zend_Config(array(), true); } if ($config->logging->debug === null) { - $config->logging->debug = new Zend_Config(array()); + $config->logging->debug = new Zend_Config(array(), true); } $values = $this->getValues(); diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 3f2ee94e7..999dda8de 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -262,7 +262,7 @@ class Form extends Zend_Form public function getConfiguration() { if ($this->config === null) { - $this->config = new Zend_Config(array()); + $this->config = new Zend_Config(array(), true); } return $this->config; }