mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix ALF-2319: CMIS 'current' version mapping is not compliant with spec
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20345 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,13 +50,11 @@ public class VersionLabelProperty extends AbstractVersioningProperty
|
||||
{
|
||||
return "pwc";
|
||||
}
|
||||
if (getVersionSeries(nodeRef).equals(nodeRef))
|
||||
Serializable versionLabel = getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_VERSION_LABEL);
|
||||
if (versionLabel == null)
|
||||
{
|
||||
return "current";
|
||||
}
|
||||
else
|
||||
{
|
||||
return getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_VERSION_LABEL);
|
||||
return "0.0";
|
||||
}
|
||||
return versionLabel;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user