MNT-18340: no longer ignores property updates for "unrelated" aspect removal

https://issues.alfresco.com/jira/browse/MNT-18340
This commit is contained in:
Matt Ward
2017-09-20 16:28:49 +01:00
parent 344952540b
commit 2f16270e6f

View File

@@ -3213,13 +3213,6 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
for(QName aspectQName : aspectsToRemove)
{
nodeService.removeAspect(nodeRef, aspectQName);
// aspect is being removed so remove all of its properties from the propsToAdd map
TypeDefinitionWrapper w = getOpenCMISDictionaryService().findNodeType(aspectQName);
for(PropertyDefinitionWrapper wr : w.getProperties())
{
String propertyId = wr.getPropertyId();
propsToAdd.remove(propertyId);
}
}
// add aspects and properties