From 40eb6b17c1a0b1d216f9088d1e5c734aee8dd2c2 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 3 Jul 2009 06:33:22 +0000 Subject: [PATCH] reindex content object when deleting a comment. svn path=/plone.app.discussion/trunk/; revision=27786 --- plone/app/discussion/conversation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index 6fd488f..935229f 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -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)