diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/groups.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/groups.js index 63de108d65..4114ae59cc 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/groups.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/groups.js @@ -469,12 +469,12 @@ module.controller('DefaultGroupsCtrl', function($scope, $q, realm, Groups, Group var refreshAvailableGroups = function (search) { var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize; var queryParams = { - realm : realm.id, + realm : realm.realm, first : first, max : $scope.pageSize }; var countParams = { - realm : realm.id, + realm : realm.realm, top : 'true' }; diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js index 8846754f06..dec8f34af8 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js @@ -1026,13 +1026,13 @@ module.controller('UserGroupMembershipCtrl', function($scope, $q, realm, user, U var refreshAvailableGroups = function (search) { var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize; var queryParams = { - realm : realm.id, + realm : realm.realm, first : first, max : $scope.pageSize }; var countParams = { - realm : realm.id, + realm : realm.realm, top : 'true' };