From a71adde8fa9623348f11fb755de2f4b0373f6344 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 29 Feb 2016 12:25:36 +0100 Subject: [PATCH] KEYCLOAK-2551 Broken navigation links while creating/editing a Client Mapper --- .../theme/base/admin/resources/js/controllers/clients.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js index 5785790868..cf5c8e7068 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js @@ -1590,8 +1590,8 @@ module.controller('ClientProtocolMapperListCtrl', function($scope, realm, client }); module.controller('ClientProtocolMapperCtrl', function($scope, realm, serverInfo, client, mapper, ClientProtocolMapper, Notifications, Dialog, $location) { - /* $scope.realm = realm; + /* $scope.client = client; $scope.create = false; $scope.protocol = client.protocol; @@ -1665,12 +1665,13 @@ module.controller('ClientProtocolMapperCtrl', function($scope, realm, serverInfo }); module.controller('ClientProtocolMapperCreateCtrl', function($scope, realm, serverInfo, client, ClientProtocolMapper, Notifications, Dialog, $location) { + $scope.realm = realm; + if (client.protocol == null) { client.protocol = 'openid-connect'; } var protocol = client.protocol; /* - $scope.realm = realm; $scope.client = client; $scope.create = true; $scope.protocol = protocol;