diff --git a/news/150.bugfix b/news/150.bugfix new file mode 100644 index 00000000..aa11d4f7 --- /dev/null +++ b/news/150.bugfix @@ -0,0 +1 @@ +addCreator should not add if a creator is already set for content. This prevents every editor on content from adding to the list of creators for an object. [avoinea, vangheem] diff --git a/plone/dexterity/content.py b/plone/dexterity/content.py index 1222064f..319c8b5c 100644 --- a/plone/dexterity/content.py +++ b/plone/dexterity/content.py @@ -361,6 +361,10 @@ def notifyModified(self): @security.protected(permissions.ModifyPortalContent) def addCreator(self, creator=None): # Add creator to Dublin Core creators. + if len(self.creators) > 0: + # do not add creator if one is already set + return + if creator is None: user = getSecurityManager().getUser() creator = user and user.getId()