From 0e2366233afd9ed201841e932757f96f4dd2ebb2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 24 Jan 2018 13:39:48 +0100 Subject: Start fixing Select2 options Signed-off-by: Joas Schilling --- settings/js/settings.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'settings/js/settings.js') diff --git a/settings/js/settings.js b/settings/js/settings.js index 3a1e67f41cd..ad0ab758e9e 100644 --- a/settings/js/settings.js +++ b/settings/js/settings.js @@ -73,12 +73,10 @@ OC.Settings = _.extend(OC.Settings, { return element.id; }, initSelection: function(element, callback) { - var selection = - _.map(($(element).val() || []).split('|').sort(), - function(groupName) { + var selection = _.map(($(element).val() || []).split('|').sort(), function(groupId) { return { - id: groupName, - displayname: groupName + id: groupId, + displayname: groupId + 'FIXME' // FIXME }; }); callback(selection); -- cgit v1.2.3