RM-2937 - The destruction of records can not be completed if the metadata is set to be maintained after destruction.

- ExtendedContentDestructionComoponent uses the NodeService interface which enforces capability check. ExtendedContentDestructionComoponent  extends ContentDestructionComoponent from community which uses the nodeService implementation. I fixed it by using the implementation directly.
   - After fixing the issue I noticed the renditions nodes are not deleted which is a regression from 2.3 and there is no comment to specify this was intended so I deleted the rendition node.
This commit is contained in:
Ana Bozianu
2016-02-18 12:18:00 +02:00
parent dfe51239d1
commit 19b36d664f

View File

@@ -179,6 +179,9 @@ public class ContentDestructionComponent
{ {
// destroy renditions content // destroy renditions content
destroyContent(child.getChildRef(), false); destroyContent(child.getChildRef(), false);
//delete the rendition node
getNodeService().deleteNode(child.getChildRef());
} }
} }
} }