From 1db3134df88a64f92fc1dab787b21ac2ba578313 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Mon, 6 Nov 2017 12:44:13 -0500 Subject: [PATCH] KEYCLOAK-5506: Set empty fed config prop fails in admin console (#4625) --- .../theme/base/admin/resources/js/controllers/users.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js index 2222ebfd59..ae76429d11 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js @@ -775,6 +775,15 @@ module.controller('GenericUserStorageCtrl', function($scope, $location, Notifica if (!instance.config['priority']) { instance.config['priority'] = ['0']; } + + if (providerFactory.properties) { + for (var i = 0; i < providerFactory.properties.length; i++) { + var configProperty = providerFactory.properties[i]; + if (!instance.config[configProperty.name]) { + instance.config[configProperty.name] = ['']; + } + } + } } if (providerFactory.metadata.synchronizable) {