From 8de82a81df054eb09ad4dbd3c75e347d47d1d451 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 --- .../model/rma/aspect/FilePlanComponentAspect.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 9bbc8f4116..dae09b8673 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 @@ -235,14 +235,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); } } }