mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
In the user security clearance page if users cannot be found an error message should not be displayed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@105631 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -96,7 +96,7 @@ public class UserSecurityClearanceGet extends AbstractRmWebScript
|
||||
|
||||
int total = getTotal(usersSecurityClearance).intValue();
|
||||
int maxItems = userQueryParams.getMaxItems();
|
||||
if (getPageNumber(req) > Math.ceil((double) total / (double) maxItems))
|
||||
if (total != 0 && getPageNumber(req) > Math.ceil((double) total / (double) maxItems))
|
||||
{
|
||||
throw new WebScriptException("The requested page is not valid");
|
||||
}
|
||||
|
Reference in New Issue
Block a user