not only send them back but also apply defaults to a new configuration. Fixes #15933
This commit is contained in:
parent
5aa3525479
commit
1c791e6000
|
@ -41,6 +41,7 @@ if(isset($_POST['copyConfig'])) {
|
||||||
$newConfig->setConfiguration($originalConfig->getConfiguration());
|
$newConfig->setConfiguration($originalConfig->getConfiguration());
|
||||||
} else {
|
} else {
|
||||||
$configuration = new \OCA\user_ldap\lib\Configuration($nk, false);
|
$configuration = new \OCA\user_ldap\lib\Configuration($nk, false);
|
||||||
|
$newConfig->setConfiguration($configuration->getDefaults());
|
||||||
$resultData['defaults'] = $configuration->getDefaults();
|
$resultData['defaults'] = $configuration->getDefaults();
|
||||||
}
|
}
|
||||||
$newConfig->saveConfiguration();
|
$newConfig->saveConfiguration();
|
||||||
|
|
Loading…
Reference in New Issue