]> source.dussan.org Git - nextcloud-server.git/commitdiff
save group ids not display names in configuration 24455/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 30 Nov 2020 13:39:13 +0000 (14:39 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 30 Nov 2020 14:49:11 +0000 (14:49 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/files_external/js/settings.js

index bd3bd0f58456bf05fdb6b84a3b47890cbc1513d9..1fadaf2c2e23071cf40edd935be3230555d52a07 100644 (file)
@@ -93,8 +93,8 @@ function addSelect2 ($elements, userListLimit) {
                                        var userCount = 0; // users is an object
 
                                        // add groups
-                                       $.each(data.groups, function(i, group) {
-                                               results.push({name:group+'(group)', displayname:group, type:'group' });
+                                       $.each(data.groups, function(gid, group) {
+                                               results.push({name:gid+'(group)', displayname:group, type:'group' });
                                        });
                                        // add users
                                        $.each(data.users, function(id, user) {