summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/ajax/getNewServerConfigPrefix.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/ajax/getNewServerConfigPrefix.php')
-rw-r--r--apps/user_ldap/ajax/getNewServerConfigPrefix.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/ajax/getNewServerConfigPrefix.php b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
index aa97b181846..897e4a9924f 100644
--- a/apps/user_ldap/ajax/getNewServerConfigPrefix.php
+++ b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
@@ -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();