mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixes WCM-495, in which second deployments don't work.
Problem was aspects being added willy nilly, regardless of their existence. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5993 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -490,6 +490,10 @@ public class DeploymentServiceImpl implements DeploymentService
|
||||
List<QName> aspects = fAVMService.getAspects(version, src.getPath());
|
||||
for (QName aspect : aspects)
|
||||
{
|
||||
if (remote.hasAspect(-1, dst.getPath(), aspect))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
remote.addAspect(dst.getPath(), aspect);
|
||||
}
|
||||
remote.setGuid(dst.getPath(), src.getGuid());
|
||||
|
Reference in New Issue
Block a user