reindex content object when deleting a comment.
svn path=/plone.app.discussion/trunk/; revision=27786
This commit is contained in:
parent
47fd22f02e
commit
40eb6b17c1
@ -317,6 +317,10 @@ class Conversation(Traversable, Persistent, Explicit):
|
||||
if not suppress_container_modified:
|
||||
notify(ContainerModifiedEvent(self))
|
||||
|
||||
# XXX: This shouldn't be necessary.
|
||||
content_obj = aq_parent(self)
|
||||
content_obj.reindexObject()
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._comments)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user