diff --git a/source/java/org/alfresco/opencmis/CMISConnector.java b/source/java/org/alfresco/opencmis/CMISConnector.java index 7a881d40f1..cc2b67140a 100644 --- a/source/java/org/alfresco/opencmis/CMISConnector.java +++ b/source/java/org/alfresco/opencmis/CMISConnector.java @@ -1448,11 +1448,7 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen { if (!nodeService.hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE)) { - Map props = new HashMap(); - props.put(ContentModel.PROP_INITIAL_VERSION, false); - props.put(ContentModel.PROP_AUTO_VERSION, false); - props.put(ContentModel.PROP_AUTO_VERSION_PROPS, false); - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); } Map versionProperties = new HashMap(5); @@ -1465,11 +1461,7 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen { if (!nodeService.hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE)) { - Map props = new HashMap(); - props.put(ContentModel.PROP_INITIAL_VERSION, false); - props.put(ContentModel.PROP_AUTO_VERSION, false); - props.put(ContentModel.PROP_AUTO_VERSION_PROPS, false); - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); } Map versionProperties = new HashMap(5);