From 06a45170efd8b2e7bde7869b4a62e0e0e1a3528d Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 20 Mar 2015 08:50:24 +0100 Subject: [PATCH] KEYCLOAK-1100 Clicking on mapper name for account application fails --- .../theme/admin/base/resources/js/controllers/applications.js | 4 +--- .../main/resources/theme/admin/base/resources/js/loaders.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js index 2334c9bdcd..307f805dea 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js @@ -1181,13 +1181,11 @@ module.controller('ApplicationProtocolMapperCtrl', function($scope, realm, serve } $scope.protocol = application.protocol; $scope.mapper = angular.copy(mapper); - var oldCopy = angular.copy($scope.realm); $scope.changed = false; $scope.boolval = true; $scope.boolvalId = 'boolval'; - console.log('protocol: ' + protocol); - var protocolMappers = serverInfo.protocolMapperTypes[protocol]; + var protocolMappers = serverInfo.protocolMapperTypes[application.protocol]; for (var i = 0; i < protocolMappers.length; i++) { if (protocolMappers[i].id == mapper.protocolMapper) { $scope.mapperType = protocolMappers[i]; diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/loaders.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/loaders.js index e5db07fa07..e9c3480267 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/loaders.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/loaders.js @@ -234,8 +234,6 @@ module.factory('ApplicationRoleListLoader', function(Loader, ApplicationRole, $r module.factory('ApplicationLoader', function(Loader, Application, $route, $q) { return Loader.get(Application, function() { - console.log('application loader****'); - console.log($route.current.params.application); return { realm : $route.current.params.realm, application : $route.current.params.application