Commit 264affc0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Take it into account if the portal is indexable.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2840 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42ba0167
......@@ -511,9 +511,10 @@ be a problem)."""
Applies immediateReindexObject recursively
"""
# Reindex self
root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1))
if self.isIndexable and root_indexable:
self.flushActivity(invoke = 0, method_id='immediateReindexObject') # This might create a recursive lock
self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock
if self.isIndexable:
self.immediateReindexObject(*args, **kw)
# Reindex contents
for c in self.objectValues():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment