diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 12:14:36 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 12:14:36 +0200 |
commit | 8944cb539ef565db4bb9f05d225449afa0d20cfb (patch) | |
tree | 7889215757fe4a0e250350c90f8bedaec6035960 /settings/js | |
parent | ccbdcf0ab33e943e6bac45a2ae3b602ed0593103 (diff) | |
parent | b2dd5cb61655b6ca82e8fd1fb117b42301d28c2b (diff) | |
download | nextcloud-server-8944cb539ef565db4bb9f05d225449afa0d20cfb.tar.gz nextcloud-server-8944cb539ef565db4bb9f05d225449afa0d20cfb.zip |
Merge pull request #19510 from owncloud/json-grouplist-sharing-exclude
save excluded groups in json format
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/admin.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 7117c7b46cf..9f7133c6571 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -23,11 +23,7 @@ $(document).ready(function(){ OC.Settings.setupGroupsSelect($(element)); $(element).change(function(ev) { var groups = ev.val || []; - if (groups.length > 0) { - groups = ev.val.join(','); // FIXME: make this JSON - } else { - groups = ''; - } + groups = JSON.stringify(groups); OC.AppConfig.setValue('core', $(this).attr('name'), groups); }); }); |