Merge pull request #3298 from ssilvert/blanks-in-dropdown

KEYCLOAK-3673: Blank items in IDP's Post Login Flow selector
This commit is contained in:
Stan Silvert 2016-10-07 08:23:06 -04:00 committed by GitHub
commit 6acd9cdf1d

View file

@ -816,6 +816,10 @@ module.controller('RealmIdentityProviderCtrl', function($scope, $filter, $upload
for (var i=0 ; i<$scope.authFlows.length ; i++) {
$scope.postBrokerAuthFlows.push($scope.authFlows[i]);
}
if (!$scope.identityProvider.postBrokerLoginFlowAlias) {
$scope.identityProvider.postBrokerLoginFlowAlias = $scope.postBrokerAuthFlows[0].alias;
}
$scope.$watch(function() {
return $location.path();