Commit cee33222 authored by Sebastien Robin's avatar Sebastien Robin

check if the root is indexable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9462b2c6
......@@ -1552,7 +1552,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
Reindexes an object
args / kw required since we must follow API
"""
if self.isIndexable:
root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1))
if self.isIndexable and root_indexable:
self.activate().immediateReindexObject(*args, **kw)
def immediateQueueCataloggedObject(self, *args, **kw):
......
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