mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-3030 - renamed variable and changed comment
This commit is contained in:
@@ -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<ChildAssociationRef> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user