Skip to content

Commit

Permalink
KEYCLOAK-5506: Set empty fed config prop fails in admin console (#4625)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilvert committed Nov 6, 2017
1 parent ffc0d7f commit 1db3134
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1db3134

Please sign in to comment.