-
Type: Bug
-
Status: Resolved
-
Priority: Detail
-
Resolution: Fixed
-
Affects Version/s: 6.0, 7.10, 8.2
-
Component/s: Collections
This the diff to apply:
diff --git a/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java b/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java index 61b07ed..de0993ef 100644 --- a/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java +++ b/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java @@ -165,7 +165,7 @@ public class CollectionManagerImpl extends DefaultComponent implements Collectio } if (!isCollection(collection)) { throw new IllegalArgumentException(String.format("Document %s is not a collection", - documentToBeAdded.getTitle())); + collection.getTitle())); } if (!session.hasPermission(collection.getRef(), SecurityConstants.WRITE_PROPERTIES)) { throw new DocumentSecurityException(String.format(PERMISSION_ERROR_MESSAGE,