Skip to content

Commit

Permalink
Clear index if components are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed Aug 23, 2016
1 parent 381c8b9 commit e0d799c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Products/PluginIndexes/CompositeIndex/CompositeIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ def saveComponents(self, components):
self.delComponent(c.old_id)
self.addComponent(c.id, c.meta_type, c.attributes)

# better safe than sorry
self.clear()

def manage_addComponent(self, c_id, c_meta_type, c_attributes, URL1,
REQUEST=None, RESPONSE=None):
""" add a new component """
Expand Down

0 comments on commit e0d799c

Please sign in to comment.