Fix that the general and logging form cannot write configuration changes
fixes #5952
This commit is contained in:
parent
e6bb32be64
commit
d109046bc0
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue