diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-02 15:31:47 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-02 15:31:47 +0200 |
commit | ea647ede73ea7a2d560fed84710782b1114826c3 (patch) | |
tree | 8a33862bf5f5d171c906d8bfe62900ac5f6de2c5 | |
parent | e94152b22634acc9e029b7e31ce56c8626488bcf (diff) | |
download | nextcloud-server-ea647ede73ea7a2d560fed84710782b1114826c3.tar.gz nextcloud-server-ea647ede73ea7a2d560fed84710782b1114826c3.zip |
Correctly split and join group list with | instead of ,
-rw-r--r-- | settings/js/apps.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 6626e058960..0c09481603c 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -125,7 +125,7 @@ OC.Settings.Apps = OC.Settings.Apps || { page.find("label[for='groups_enable-"+app.id+"']").hide(); page.find(".groups-enable").attr('checked', null); } else { - page.find('#group_select').val((app.groups || []).join(',')); + page.find('#group_select').val((app.groups || []).join('|')); if (app.active) { if (app.groups.length) { OC.Settings.Apps.setupGroupsSelect(page.find('#group_select')); @@ -372,7 +372,7 @@ $(document).ready(function () { var element = $(this).parent().find('input.enable'); var groups = $(this).val(); if (groups && groups !== '') { - groups = groups.split(','); + groups = groups.split('|'); } else { groups = []; } |