Skip to content

Commit

Permalink
Fix bug searching while on later pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbrown committed Jan 17, 2025
1 parent de94e8d commit cc6a935
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public ManageUsersPageWrapper searchUsersAndStatusInCurrentOrgPaged(
.toList();

int totalSearchResults = totalFilteredUsersList.size();
int startIndex = pageNumber * pageSize;
int startIndex = totalSearchResults > pageSize ? pageNumber * pageSize : 0;
int endIndex = Math.min((startIndex + pageSize), totalFilteredUsersList.size());

Organization org = _orgService.getCurrentOrganization();
Expand Down

0 comments on commit cc6a935

Please sign in to comment.