keycloak-aplcache

Details

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 2334c9b..307f805 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 e5db07f..e9c3480 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