mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.0 to HEAD
5116: AWC-1067, AWC-1126 5121: AR-1233 (from 1.4 via 2.0) 5129: AR-966 5131: Overlay copy and duplicate name git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5323 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -898,6 +898,9 @@ public class CopyServiceImpl implements CopyService
|
||||
// Get the copy details
|
||||
PolicyScope copyDetails = getCopyDetails(sourceNodeRef, destinationNodeRef.getStoreRef(), false);
|
||||
|
||||
// Remove the name property from the policy scope to prevent duplicate name exceptions
|
||||
copyDetails.removeProperty(ContentModel.PROP_NAME);
|
||||
|
||||
// Copy over the top of the destination node
|
||||
copyProperties(destinationNodeRef, copyDetails);
|
||||
copyAspects(destinationNodeRef, copyDetails);
|
||||
|
Reference in New Issue
Block a user