]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5397: Pagination of refObjs now appears to be working, subject to additional...
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 13 Jul 2012 16:27:10 +0000 (09:27 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 13 Jul 2012 16:27:10 +0000 (09:27 -0700)
services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java

index 218a06993888d6b671e6e21f532cadc694612560..93f36a29b148e384e241b1efd0776167fa7a08fb 100644 (file)
@@ -322,7 +322,8 @@ public class RefNameServiceUtils {
             // Note: the second argument to List.subList() is exclusive of the\r
             // item at its index position, reflecting the zero-index nature of\r
             // the list.\r
-            List<AuthorityRefDocList.AuthorityRefDocItem> currentPageList = list.subList(startIndex, endIndex);\r
+            List<AuthorityRefDocList.AuthorityRefDocItem> currentPageList =\r
+                    new ArrayList<AuthorityRefDocList.AuthorityRefDocItem>(list.subList(startIndex, endIndex));\r
             wrapperList.getAuthorityRefDocItem().clear();\r
             wrapperList.getAuthorityRefDocItem().addAll(currentPageList);\r
             commonList.setItemsInPage(currentPageList.size());\r