RM-3030 - renamed variable and changed comment

(cherry picked from commit d5efeec830)
This commit is contained in:
Roxana Lucanu
2016-04-06 17:52:38 +03:00
committed by roxana
parent d0b8a79a8a
commit eb3fa4acb3

View File

@@ -226,14 +226,14 @@ public class FilePlanComponentAspect extends BaseBehaviourBean
// If the node has any renditions, they inherit the file plan from their source node. // If the node has any renditions, they inherit the file plan from their source node.
List<ChildAssociationRef> renditions = renditionService.getRenditions(nodeRef); List<ChildAssociationRef> renditions = renditionService.getRenditions(nodeRef);
NodeRef thumbnail; NodeRef rendition;
for (ChildAssociationRef chAssRef : renditions) for (ChildAssociationRef chAssRef : renditions)
{ {
thumbnail = chAssRef.getChildRef(); rendition = chAssRef.getChildRef();
if (nodeService.exists(thumbnail)) if (nodeService.exists(rendition))
{ {
// Apply file plan component aspect to thumbnail // Apply file plan component aspect to node's renditions
nodeService.addAspect(thumbnail, ASPECT_FILE_PLAN_COMPONENT, null); nodeService.addAspect(rendition, ASPECT_FILE_PLAN_COMPONENT, null);
} }
} }
} }