From f7d4b978fa22bef1b02c3f0f8965c94bc08978d1 Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Tue, 6 Sep 2016 22:03:46 +0000 Subject: [PATCH] Merged 5.2.N (5.2.1) to HEAD (5.2) 130174 gjames: Merged searchapi (5.2.1) to 5.2.N (5.2.1) 129785 gjames: SEARCH-114: Adding skipcount to hasMoreItems. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130325 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/rest/api/search/impl/ResultMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/java/org/alfresco/rest/api/search/impl/ResultMapper.java b/source/java/org/alfresco/rest/api/search/impl/ResultMapper.java index de99286c42..8790ad9385 100644 --- a/source/java/org/alfresco/rest/api/search/impl/ResultMapper.java +++ b/source/java/org/alfresco/rest/api/search/impl/ResultMapper.java @@ -86,7 +86,7 @@ public class ResultMapper ); Integer total = Integer.valueOf(totalItems.intValue()); - return CollectionWithPagingInfo.asPaged(params.getPaging(), noderesults, noderesults.size() < total, total); + return CollectionWithPagingInfo.asPaged(params.getPaging(), noderesults, noderesults.size() + params.getPaging().getSkipCount() < total, total); } }