diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-05 14:20:58 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-05 14:20:58 +0200 |
commit | 1c791e6000ca9b61bd6dac479c51bbde95851ef8 (patch) | |
tree | 64ad2c601061a6d2802fb1a2db97a1cd20d50512 /apps/user_ldap/ajax | |
parent | 5aa3525479a29ea0521db9050d3ef22e17729e94 (diff) | |
download | nextcloud-server-1c791e6000ca9b61bd6dac479c51bbde95851ef8.tar.gz nextcloud-server-1c791e6000ca9b61bd6dac479c51bbde95851ef8.zip |
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.php | 1 |
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(); |