[KEYCLOAK-7160] - Completely broken AuthZ Configs in IE

This commit is contained in:
Pedro Igor 2018-09-03 12:16:06 -03:00 committed by Stian Thorgersen
parent bc8763ccf3
commit 2eddfd3ea8

View file

@ -375,7 +375,12 @@ module.controller('ResourceServerResourceDetailCtrl', function($scope, $http, $r
for (i = 0; i < $scope.resource.scopes.length; i++) { for (i = 0; i < $scope.resource.scopes.length; i++) {
delete $scope.resource.scopes[i].text; delete $scope.resource.scopes[i].text;
} }
for (var [key, value] of Object.entries($scope.resource.attributes)) {
var keys = Object.keys($scope.resource.attributes);
for (var k = 0; k < keys.length; k++) {
var key = keys[k];
var value = $scope.resource.attributes[key];
var values = value.toString().split(','); var values = value.toString().split(',');
$scope.resource.attributes[key] = []; $scope.resource.attributes[key] = [];