diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java index d901b69eaf..abc6456d19 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java @@ -236,14 +236,14 @@ public class FilePlanComponentAspect extends BaseBehaviourBean // If the node has any renditions, they inherit the file plan from their source node. List renditions = renditionService.getRenditions(nodeRef); - NodeRef thumbnail; + NodeRef rendition; for (ChildAssociationRef chAssRef : renditions) { - thumbnail = chAssRef.getChildRef(); - if (nodeService.exists(thumbnail)) + rendition = chAssRef.getChildRef(); + if (nodeService.exists(rendition)) { - // Apply file plan component aspect to thumbnail - nodeService.addAspect(thumbnail, ASPECT_FILE_PLAN_COMPONENT, null); + // Apply file plan component aspect to node's renditions + nodeService.addAspect(rendition, ASPECT_FILE_PLAN_COMPONENT, null); } } }