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