diff --git a/source/java/org/alfresco/opencmis/CMISConnector.java b/source/java/org/alfresco/opencmis/CMISConnector.java index 5807b74e08..c829d05561 100644 --- a/source/java/org/alfresco/opencmis/CMISConnector.java +++ b/source/java/org/alfresco/opencmis/CMISConnector.java @@ -1369,10 +1369,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); - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); } Map versionProperties = new HashMap(5); @@ -1385,10 +1382,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); - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); } Map versionProperties = new HashMap(5);