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:
Jamal Kaabi-Mofrad
2013-09-17 16:45:22 +00:00
parent 9309ed04f5
commit ec5081ef10

View File

@@ -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;