Fixed unreported issues with application of default values during NodeService.setType

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22969 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2010-10-07 15:30:12 +00:00
parent 517569d27b
commit bfd512ecc7
2 changed files with 78 additions and 1 deletions

View File

@@ -639,7 +639,7 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
}
// Work out what is missing
Map<QName, Serializable> missingProperties = new HashMap<QName, Serializable>(allDefaultProperties);
missingProperties.entrySet().removeAll(existingProperties.entrySet());
missingProperties.keySet().removeAll(existingProperties.keySet());
// Done
return missingProperties;
}