mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ALF-19111: Fixed the user trashcan pagination backend. ArchivedNodes CQ, supports paging, so there was no need to use the ModelUtil.page method to build the page again.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55425 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -81,7 +81,11 @@ public class ArchivedNodesGet extends AbstractArchivedNodeWebScript
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now do the paging
|
// Now do the paging
|
||||||
model.put(DELETED_NODES, ModelUtil.page(deletedNodes, paging));
|
// ALF-19111. Note: Archived nodes CQ, supports Paging,
|
||||||
|
// so no need to use the ModelUtil.page method to build the page again.
|
||||||
|
model.put(DELETED_NODES, deletedNodes);
|
||||||
|
// Because we haven't used ModelUtil.page method, we need to set the total items manually.
|
||||||
|
paging.setTotalItems(deletedNodes.size());
|
||||||
model.put("paging", ModelUtil.buildPaging(paging));
|
model.put("paging", ModelUtil.buildPaging(paging));
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
|
Reference in New Issue
Block a user