[fix/MNT-24172-fixRendition2Recreation] Fix for rendition2 recreation

This commit is contained in:
mohit-singh4
2025-01-16 22:01:13 +05:30
parent d72de6844d
commit c87d1c9475

View File

@@ -1000,7 +1000,7 @@ public abstract class AbstractRenderingEngine extends ActionExecuterAbstractBase
}
// Check if the node has the applied renditioned aspect, and if it does,
// remove the existing rendition node and assign the newly created rendition node.
if (nodeService.hasAspect(sourceNode, RenditionModel.ASPECT_RENDITIONED) == true)
if (nodeService.hasAspect(sourceNode, RenditionModel.ASPECT_RENDITIONED))
{
List<ChildAssociationRef> renditions = nodeService.getChildAssocs(sourceNode, RenditionModel.ASSOC_RENDITION, renditionQName);
if (!renditions.isEmpty())
@@ -1011,7 +1011,9 @@ public abstract class AbstractRenderingEngine extends ActionExecuterAbstractBase
}
if (logger.isDebugEnabled())
{
logger.debug("Returning the existing rendition node with name " + renditionQName);
logger.debug("Removing the existing rendition node that doesn't have contentData and "
+ "assigning the newly created rendition node: " + renditionNode);
}
}
// Return the link between the source and the new, final rendition