From eb3fa4acb3beb90b54ef08e600e8adb5e573e259 Mon Sep 17 00:00:00 2001 From: Roxana Lucanu Date: Wed, 6 Apr 2016 17:52:38 +0300 Subject: [PATCH] RM-3030 - renamed variable and changed comment (cherry picked from commit d5efeec83052ef19db1b68ba3c33d6c14debe0d3) --- .../model/rma/aspect/FilePlanComponentAspect.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java index 42dbf01f1b..c8590ce24c 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java @@ -226,14 +226,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); } } }