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();
|
$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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue