not only send them back but also apply defaults to a new configuration. Fixes #15933

This commit is contained in:
Arthur Schiwon 2015-05-05 14:20:58 +02:00
parent 5aa3525479
commit 1c791e6000

View file

@ -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();