diff --git a/themes/src/main/resources/theme/base/admin/resources/js/services.js b/themes/src/main/resources/theme/base/admin/resources/js/services.js index 6855286e2b..b829f7ff6e 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/services.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/services.js @@ -957,15 +957,11 @@ function clientSelectControl($scope, realm, Client) { delay: 500, allowClear: true, query: function (query) { - var data = {results: []}; Client.query({realm: realm, search: true, clientId: query.term.trim(), max: 20}, function(response) { - data.results = response; - query.callback(data); + query.callback({ results: response.map(function (client) { + return { id: client.id, text: client.clientId } + }); }); - }, - formatResult: function(object, container, query) { - object.text = object.clientId; - return object.clientId; } }; }