KEYCLOAK-9056 Change wrong params passed to /groups endpoint in groups and user panel

This commit is contained in:
Axel Messinese 2018-12-14 03:07:07 +01:00 committed by Stian Thorgersen
parent 68873c29b7
commit 4150daa9cb
2 changed files with 4 additions and 4 deletions

View file

@ -469,12 +469,12 @@ module.controller('DefaultGroupsCtrl', function($scope, $q, realm, Groups, Group
var refreshAvailableGroups = function (search) { var refreshAvailableGroups = function (search) {
var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize; var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize;
var queryParams = { var queryParams = {
realm : realm.id, realm : realm.realm,
first : first, first : first,
max : $scope.pageSize max : $scope.pageSize
}; };
var countParams = { var countParams = {
realm : realm.id, realm : realm.realm,
top : 'true' top : 'true'
}; };

View file

@ -1026,13 +1026,13 @@ module.controller('UserGroupMembershipCtrl', function($scope, $q, realm, user, U
var refreshAvailableGroups = function (search) { var refreshAvailableGroups = function (search) {
var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize; var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize;
var queryParams = { var queryParams = {
realm : realm.id, realm : realm.realm,
first : first, first : first,
max : $scope.pageSize max : $scope.pageSize
}; };
var countParams = { var countParams = {
realm : realm.id, realm : realm.realm,
top : 'true' top : 'true'
}; };