Fixed configuration save location to point to existing config folder [#2176]

This commit is contained in:
Matias Griese
2021-09-14 17:59:12 +03:00
parent ab68cbdd59
commit 1091e7ab26
3 changed files with 46 additions and 135 deletions

View File

@@ -174,11 +174,11 @@ class AdminController extends AdminBaseController
*/
protected function saveDefault()
{
// Handle standard data types.
$type = $this->getDataType();
$obj = $this->admin->getConfigurationData($type, $this->data);
try {
// Handle standard data types.
$type = $this->getDataType();
$obj = $this->admin->getConfigurationData($type, $this->data);
$obj->validate();
} catch (\Exception $e) {
/** @var Debugger $debugger */