No need to manually put comments from conversation.getComments in an acquisition chain since getComments now returns acquisition wrapped comments.
svn path=/plone.app.discussion/trunk/; revision=51642
This commit is contained in:
@@ -236,7 +236,7 @@ def notify_content_object_moved(obj, event):
|
||||
# Reindex comment at the new location
|
||||
conversation = IConversation(obj)
|
||||
for comment in conversation.getComments():
|
||||
comment.__parent__.__parent__.__parent__ = event.newParent
|
||||
aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
|
||||
catalog.reindexObject(aq_base(comment))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user