Fix that the general and logging form cannot write configuration changes

fixes #5952
This commit is contained in:
Johannes Meyer 2014-04-07 09:27:37 +02:00
parent e6bb32be64
commit d109046bc0
3 changed files with 5 additions and 5 deletions

View File

@ -412,10 +412,10 @@ class GeneralForm extends Form
{ {
$config = $this->getConfiguration(); $config = $this->getConfiguration();
if ($config->global === null) { if ($config->global === null) {
$config->global = new Zend_Config(array()); $config->global = new Zend_Config(array(), true);
} }
if ($config->preferences === null) { if ($config->preferences === null) {
$config->preferences = new Zend_Config(array()); $config->preferences = new Zend_Config(array(), true);
} }
$values = $this->getValues(); $values = $this->getValues();

View File

@ -192,10 +192,10 @@ class LoggingForm extends Form
{ {
$config = $this->getConfiguration(); $config = $this->getConfiguration();
if ($config->logging === null) { if ($config->logging === null) {
$config->logging = new Zend_Config(array()); $config->logging = new Zend_Config(array(), true);
} }
if ($config->logging->debug === null) { if ($config->logging->debug === null) {
$config->logging->debug = new Zend_Config(array()); $config->logging->debug = new Zend_Config(array(), true);
} }
$values = $this->getValues(); $values = $this->getValues();

View File

@ -262,7 +262,7 @@ class Form extends Zend_Form
public function getConfiguration() public function getConfiguration()
{ {
if ($this->config === null) { if ($this->config === null) {
$this->config = new Zend_Config(array()); $this->config = new Zend_Config(array(), true);
} }
return $this->config; return $this->config;
} }