fix account mappers issue
This commit is contained in:
parent
de2aa8e676
commit
adb5f306c2
1 changed files with 6 additions and 1 deletions
|
@ -1180,7 +1180,9 @@ module.controller('ApplicationProtocolMapperCtrl', function($scope, realm, serve
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.application = application;
|
$scope.application = application;
|
||||||
$scope.create = false;
|
$scope.create = false;
|
||||||
var protocol = application.protocol;
|
if (application.protocol == null) {
|
||||||
|
application.protocol = 'openid-connect';
|
||||||
|
}
|
||||||
$scope.protocol = application.protocol;
|
$scope.protocol = application.protocol;
|
||||||
$scope.mapper = angular.copy(mapper);
|
$scope.mapper = angular.copy(mapper);
|
||||||
var oldCopy = angular.copy($scope.realm);
|
var oldCopy = angular.copy($scope.realm);
|
||||||
|
@ -1245,6 +1247,9 @@ module.controller('ApplicationProtocolMapperCreateCtrl', function($scope, realm,
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.application = application;
|
$scope.application = application;
|
||||||
$scope.create = true;
|
$scope.create = true;
|
||||||
|
if (application.protocol == null) {
|
||||||
|
application.protocol = 'openid-connect';
|
||||||
|
}
|
||||||
var protocol = application.protocol;
|
var protocol = application.protocol;
|
||||||
$scope.protocol = protocol;
|
$scope.protocol = protocol;
|
||||||
$scope.mapper = { protocol : application.protocol, config: {}};
|
$scope.mapper = { protocol : application.protocol, config: {}};
|
||||||
|
|
Loading…
Reference in a new issue