diff --git a/themes/src/main/resources/theme/base/admin/resources/js/app.js b/themes/src/main/resources/theme/base/admin/resources/js/app.js index 3b49000b76..04d54b34d6 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/app.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/app.js @@ -2790,14 +2790,18 @@ module.controller('ProviderConfigCtrl', function ($modal, $scope, $route, Compon }) } - $scope.changeClient = function(configName, config, client) { + $scope.changeClient = function(configName, config, client, multivalued) { if (!client || !client.id) { config[configName] = null; $scope.selectedClient = null; return; } $scope.selectedClient = client; - config[configName] = client.clientId; + if (multivalued) { + config[configName][0] = client.clientId; + } else { + config[configName] = client.clientId; + } }; ComponentUtils.convertAllMultivaluedStringValuesToList($scope.properties, $scope.config); diff --git a/themes/src/main/resources/theme/base/admin/resources/templates/kc-component-config.html b/themes/src/main/resources/theme/base/admin/resources/templates/kc-component-config.html index 41818c96a4..3f29ee7e4b 100755 --- a/themes/src/main/resources/theme/base/admin/resources/templates/kc-component-config.html +++ b/themes/src/main/resources/theme/base/admin/resources/templates/kc-component-config.html @@ -30,7 +30,7 @@