KEYCLOAK-1100 Clicking on mapper name for account application fails

This commit is contained in:
Stian Thorgersen 2015-03-20 08:50:24 +01:00
parent d44cc8639d
commit 06a45170ef
2 changed files with 1 additions and 5 deletions

View file

@ -1181,13 +1181,11 @@ module.controller('ApplicationProtocolMapperCtrl', function($scope, realm, serve
} }
$scope.protocol = application.protocol; $scope.protocol = application.protocol;
$scope.mapper = angular.copy(mapper); $scope.mapper = angular.copy(mapper);
var oldCopy = angular.copy($scope.realm);
$scope.changed = false; $scope.changed = false;
$scope.boolval = true; $scope.boolval = true;
$scope.boolvalId = 'boolval'; $scope.boolvalId = 'boolval';
console.log('protocol: ' + protocol); var protocolMappers = serverInfo.protocolMapperTypes[application.protocol];
var protocolMappers = serverInfo.protocolMapperTypes[protocol];
for (var i = 0; i < protocolMappers.length; i++) { for (var i = 0; i < protocolMappers.length; i++) {
if (protocolMappers[i].id == mapper.protocolMapper) { if (protocolMappers[i].id == mapper.protocolMapper) {
$scope.mapperType = protocolMappers[i]; $scope.mapperType = protocolMappers[i];

View file

@ -234,8 +234,6 @@ module.factory('ApplicationRoleListLoader', function(Loader, ApplicationRole, $r
module.factory('ApplicationLoader', function(Loader, Application, $route, $q) { module.factory('ApplicationLoader', function(Loader, Application, $route, $q) {
return Loader.get(Application, function() { return Loader.get(Application, function() {
console.log('application loader****');
console.log($route.current.params.application);
return { return {
realm : $route.current.params.realm, realm : $route.current.params.realm,
application : $route.current.params.application application : $route.current.params.application