diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 0292d011955db51a49d3824e8aa2c8b64fb2b5c8..c7d1cfd6522bb60aa4f5e87a2b897fb9f6c4b9cd 100644 --- a/product/ERP5Type/Document/Folder.py +++ b/product/ERP5Type/Document/Folder.py @@ -534,8 +534,7 @@ class Folder( CopyContainer, CMFBTreeFolder, Base, FolderMixIn): XXXXXXXXXXXXXXXXXXXXXXXX BUG here : when creating a new base category """ - root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1)) - if self.isIndexable and root_indexable: + if self.isIndexable: self.activate(group_method_id='portal_catalog/catalogObjectList', expand_method_id='getIndexableChildValueList', alternate_method_id='alternateReindexObject', **kw).recursiveImmediateReindexObject(*args, **kw) security.declareProtected( Permissions.AccessContentsInformation, 'getIndexableChildValueList' )