diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-07-20 16:08:39 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-07-20 16:08:39 +0200 |
commit | 252c239a2a1da6b2af8d0cd2b2e5054f5cc363c3 (patch) | |
tree | d9d93751c535dba5bb7098f609b603c73576c49d /settings | |
parent | ddc85a987134ddefd9887cd547554422a6d86c7a (diff) | |
parent | 1d39282360e956d93fbfb1c1c17c9bcf79292729 (diff) | |
download | nextcloud-server-252c239a2a1da6b2af8d0cd2b2e5054f5cc363c3.tar.gz nextcloud-server-252c239a2a1da6b2af8d0cd2b2e5054f5cc363c3.zip |
Merge pull request #9732 from owncloud/fix-9716
do not show selected groups twice after user creation
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/users.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 9eb8f91ac7c..883851e2a2f 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -654,9 +654,11 @@ $(document).ready(function () { } else { if (result.data.groups) { var addedGroups = result.data.groups; - UserList.availableGroups = $.unique($.merge(UserList.availableGroups, addedGroups)); for (var i in result.data.groups) { var gid = result.data.groups[i]; + if(UserList.availableGroups.indexOf(gid) === -1) { + UserList.availableGroups.push(gid); + } $li = GroupList.getGroupLI(gid); userCount = GroupList.getUserCount($li); GroupList.setUserCount($li, userCount + 1); |