KEYCLOAK-694 Fix JS error which could happen when creating application

This commit is contained in:
mposolda 2014-09-18 10:51:10 +02:00
parent fc37398235
commit 95233af485

View file

@ -246,7 +246,6 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
}
} else {
$scope.application = { enabled: true };
$scope.application.webOrigins = [];
$scope.application.redirectUris = [];
$scope.accessType = $scope.accessTypes[0];
}
@ -296,10 +295,6 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
Notifications.error("You must specify at least one redirect uri");
} else {
if ($scope.create) {
if ($scope.application.webOrigins.length == 0) {
// let rest api put in default webOrigins
$scope.application.webOrigins = null;
}
Application.save({
realm: realm.realm,
application: ''