Skip to content

Commit 3e0f8ae

Browse files
committed
KEYCLOAK-19038 Reload user after being updated
1 parent afa6e31 commit 3e0f8ae

File tree

1 file changed

+2
-4
lines changed
  • themes/src/main/resources/theme/base/admin/resources/js/controllers

1 file changed

+2
-4
lines changed

themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ module.controller('UserDetailCtrl', function($scope, realm, user, BruteForceUser
385385
Components,
386386
UserImpersonation, RequiredActions,
387387
UserStorageOperations,
388-
$location, $http, Dialog, Notifications, $translate, Groups) {
388+
$location, $http, Dialog, Notifications, $translate, $route, Groups) {
389389
$scope.realm = realm;
390390
$scope.create = !user.id;
391391
$scope.editUsername = $scope.create || $scope.realm.editUsernameAllowed;
@@ -488,10 +488,8 @@ module.controller('UserDetailCtrl', function($scope, realm, user, BruteForceUser
488488
realm: realm.realm,
489489
userId: $scope.user.id
490490
}, $scope.user, function () {
491-
$scope.changed = false;
492-
convertAttributeValuesToString($scope.user);
493-
user = angular.copy($scope.user);
494491
Notifications.success($translate.instant('user.edit.success'));
492+
$route.reload();
495493
});
496494
}
497495
};

0 commit comments

Comments
 (0)