From 447431d1181c1b49e95480497285892e53c1e270 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Fri, 13 Jul 2012 09:27:10 -0700 Subject: [PATCH] CSPACE-5397: Pagination of refObjs now appears to be working, subject to additional testing. --- .../services/common/vocabulary/RefNameServiceUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java index 218a06993..93f36a29b 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java @@ -322,7 +322,8 @@ public class RefNameServiceUtils { // Note: the second argument to List.subList() is exclusive of the // item at its index position, reflecting the zero-index nature of // the list. - List currentPageList = list.subList(startIndex, endIndex); + List currentPageList = + new ArrayList(list.subList(startIndex, endIndex)); wrapperList.getAuthorityRefDocItem().clear(); wrapperList.getAuthorityRefDocItem().addAll(currentPageList); commonList.setItemsInPage(currentPageList.size()); -- 2.47.3