KEYCLOAK-5863 Fix error when updating mapper twice in a row
This commit is contained in:
parent
641069d4fd
commit
feaf834184
1 changed files with 2 additions and 4 deletions
|
@ -2065,7 +2065,7 @@ module.controller('ClientTemplateProtocolMapperListCtrl', function($scope, realm
|
||||||
updateMappers();
|
updateMappers();
|
||||||
});
|
});
|
||||||
|
|
||||||
module.controller('ClientTemplateProtocolMapperCtrl', function($scope, realm, serverInfo, template, mapper, clients, ClientTemplateProtocolMapper, Notifications, Dialog, $location) {
|
module.controller('ClientTemplateProtocolMapperCtrl', function($scope, realm, serverInfo, template, mapper, clients, ClientTemplateProtocolMapper, Notifications, Dialog, $location, $route) {
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.clients = clients;
|
$scope.clients = clients;
|
||||||
|
|
||||||
|
@ -2106,9 +2106,7 @@ module.controller('ClientTemplateProtocolMapperCtrl', function($scope, realm, se
|
||||||
template: template.id,
|
template: template.id,
|
||||||
id : mapper.id
|
id : mapper.id
|
||||||
}, $scope.model.mapper, function() {
|
}, $scope.model.mapper, function() {
|
||||||
$scope.model.changed = false;
|
$route.reload();
|
||||||
mapper = angular.copy($scope.mapper);
|
|
||||||
$location.url("/realms/" + realm.realm + '/client-templates/' + template.id + "/mappers/" + $scope.model.mapper.id);
|
|
||||||
Notifications.success("Your changes have been saved.");
|
Notifications.success("Your changes have been saved.");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue