mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N-AUDIT-API (5.2.2) to 5.2.N (5.2.2)
137946 anechifor: add totalItems git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -213,7 +213,7 @@ public class AuditImpl implements Audit
|
||||
if(skipCount >= totalItems)
|
||||
{
|
||||
List<AuditEntry> empty = Collections.emptyList();
|
||||
return CollectionWithPagingInfo.asPaged(paging, empty, false, totalItems);
|
||||
return CollectionWithPagingInfo.asPaged(paging, empty, false, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -221,7 +221,7 @@ public class AuditImpl implements Audit
|
||||
boolean hasMoreItems = totalItems > end;
|
||||
|
||||
entriesAudit = entriesAudit.subList(skipCount, end);
|
||||
return CollectionWithPagingInfo.asPaged(paging, entriesAudit, hasMoreItems, totalItems);
|
||||
return CollectionWithPagingInfo.asPaged(paging, entriesAudit, hasMoreItems, entriesAudit.size());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user