MSD-7
Configuration: added method that adds non visible configuration params to the config array that is used to create the config.ini file.
Dieser Commit ist enthalten in:
Ursprung
6093094d2e
Commit
c523c74f91
1 geänderte Dateien mit 15 neuen und 0 gelöschten Zeilen
|
@ -333,6 +333,7 @@ class ConfigController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$configData = $form->getValidValues($postData);
|
$configData = $form->getValidValues($postData);
|
||||||
|
$configData = $this->_addNonConfigurableConfigParams($configData);
|
||||||
$configValidator =
|
$configValidator =
|
||||||
new Application_Model_Config_FormValidator($configData);
|
new Application_Model_Config_FormValidator($configData);
|
||||||
$configValidator->validate($this->view);
|
$configValidator->validate($this->view);
|
||||||
|
@ -340,6 +341,20 @@ class ConfigController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add configuration params that are not configurable in gui but must be saved.
|
||||||
|
*
|
||||||
|
* @param array $configData The config array
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
private function _addNonConfigurableConfigParams($configData)
|
||||||
|
{
|
||||||
|
$config = Msd_Configuration::getInstance();
|
||||||
|
$configData['systemDatabases'] = $config->get('config.systemDatabases');
|
||||||
|
return $configData;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the default visibilities of the display groups inside of the form.
|
* Set the default visibilities of the display groups inside of the form.
|
||||||
* The visibilities depends on the current configuration.
|
* The visibilities depends on the current configuration.
|
||||||
|
|
Laden …
In neuem Issue referenzieren