From cee332226e3e787d8f5475458e585c031027d7db Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 22 Dec 2004 12:30:39 +0000 Subject: [PATCH] check if the root is indexable git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2089 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 76d3acc9e7..c38c7a967f 100755 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -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): -- 2.30.9