mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10745 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -725,7 +725,19 @@ public class Version2ServiceImpl extends VersionServiceImpl implements VersionSe
|
||||
return super.getVersionHistoryNodeRef(nodeRef);
|
||||
}
|
||||
|
||||
return this.dbNodeService.getChildByName(getRootNode(), Version2Model.CHILD_QNAME_VERSION_HISTORIES, nodeRef.getId());
|
||||
// assume noderef is a 'live' node
|
||||
NodeRef vhNodeRef = this.dbNodeService.getChildByName(getRootNode(), Version2Model.CHILD_QNAME_VERSION_HISTORIES, nodeRef.getId());
|
||||
|
||||
// DEPRECATED: for backwards compatibility, in case of a version node (eg. via getCurrentVersion) can lookup 'live' node via UUID
|
||||
if (vhNodeRef == null)
|
||||
{
|
||||
if (nodeService.exists(nodeRef))
|
||||
{
|
||||
vhNodeRef = this.dbNodeService.getChildByName(getRootNode(), Version2Model.CHILD_QNAME_VERSION_HISTORIES, (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NODE_UUID));
|
||||
}
|
||||
}
|
||||
|
||||
return vhNodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user