From 5b477a7b64dbe951d8d56e6df3ea33740e130c8f Mon Sep 17 00:00:00 2001 From: cagache Date: Wed, 13 Feb 2019 16:00:05 +0200 Subject: [PATCH] added IT for delete classified content with copies --- .../content/ContentDestructionComponent.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/content/ContentDestructionComponent.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/content/ContentDestructionComponent.java index 5bdfd1dc33..07226abc96 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/content/ContentDestructionComponent.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/content/ContentDestructionComponent.java @@ -215,12 +215,11 @@ public class ContentDestructionComponent // get content data ContentData dataContent = (ContentData)entry.getValue(); - // destroy the nodes content properties only if it doesn't have copies or it is a copy - // destroy the nodes content properties only if the versionedNodeRef is deleted + // destroy the node's content properties only if it doesn't have copies or it is a copy if (getNodeService().getTargetAssocs(nodeRef, ContentModel.ASSOC_ORIGINAL).isEmpty() && - getNodeService().getSourceAssocs(nodeRef, ContentModel.ASSOC_ORIGINAL).isEmpty() && - getNodeService().getProperty(nodeRef, RecordableVersionModel.PROP_VERSIONED_NODEREF) == null) - { // if enabled cleanse content + getNodeService().getSourceAssocs(nodeRef, ContentModel.ASSOC_ORIGINAL).isEmpty()) + { + // if enabled cleanse content if (isCleansingEnabled()) { // register for cleanse then immediate destruction