KEYCLOAK-5506: Set empty fed config prop fails in admin console (#4625)

This commit is contained in:
Stan Silvert 2017-11-06 12:44:13 -05:00 committed by GitHub
parent ffc0d7fc7c
commit 1db3134df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -776,6 +776,15 @@ module.controller('GenericUserStorageCtrl', function($scope, $location, Notifica
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) {
if (instance.config && instance.config['importEnabled']) {