Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

59887: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3)
      59643: Merged DEV to V4.2-BUG-FIX (4.2.2)
         59235: MNT-10223 : CMIS: Created document has incorrect value on Properties tab
         Fixed the isLatestMajorVersion() implementation to return false if the
         version of the doc is minor.
         59236: MNT-10223 : CMIS: Created document has incorrect value on Properties tab
         Added a test for the issue.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62205 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 08:16:47 +00:00
parent dbcef62a9c
commit 6c45b22b37
2 changed files with 74 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
* Copyright (C) 2005-2013 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -592,7 +592,9 @@ public class CMISNodeInfoImpl implements CMISNodeInfo
isLatestMajorVersion = Boolean.FALSE;
if (!isPWC())
{
if(isCurrentNode())
// MNT-10223. It should not be a version and not a minor version
Version version = getVersion();
if (isCurrentNode() && version != null && version.getVersionType() == VersionType.MAJOR)
{
isLatestMajorVersion = Boolean.TRUE;
}