Make sure the __parent__ pointer (the conversation) of a comment is not acquisition wrapped in conversation.addComment. This fixes Refs #11157.
svn path=/plone.app.discussion/trunk/; revision=40374
This commit is contained in:
@@ -232,7 +232,7 @@ class Conversation(Traversable, Persistent, Explicit):
|
||||
notify(ObjectWillBeAddedEvent(comment, self, id))
|
||||
self._comments[id] = comment
|
||||
|
||||
comment.__parent__ = self
|
||||
comment.__parent__ = aq_base(self)
|
||||
|
||||
# Record unique users who've commented (for logged in users only)
|
||||
commentator = comment.author_username
|
||||
|
||||
Reference in New Issue
Block a user