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:
Derek Hulley
2007-03-07 09:50:10 +00:00
parent bf9a4976e7
commit 80ce950335
5 changed files with 114 additions and 2 deletions

View File

@@ -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);