Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-05-05 15:20:58 +0300
committerArthur Schiwon <blizzz@owncloud.com>2015-05-05 15:20:58 +0300
commit1c791e6000ca9b61bd6dac479c51bbde95851ef8 (patch)
tree64ad2c601061a6d2802fb1a2db97a1cd20d50512 /apps/user_ldap/ajax
parent5aa3525479a29ea0521db9050d3ef22e17729e94 (diff)
not only send them back but also apply defaults to a new configuration. Fixes #15933
Diffstat (limited to 'apps/user_ldap/ajax')
-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();