[Pkg-owncloud-commits] [owncloud] 77/122: not only send them back but also apply defaults to a new configuration. Fixes #15933

David Prévot taffit at moszumanska.debian.org
Sat May 9 00:00:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 1c791e6000ca9b61bd6dac479c51bbde95851ef8
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Tue May 5 14:20:58 2015 +0200

    not only send them back but also apply defaults to a new configuration. Fixes #15933
---
 apps/user_ldap/ajax/getNewServerConfigPrefix.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/user_ldap/ajax/getNewServerConfigPrefix.php b/apps/user_ldap/ajax/getNewServerConfigPrefix.php
index aa97b18..897e4a9 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();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list