Commit 7046f4f0 authored by Sebastien Robin's avatar Sebastien Robin

it not required to check if the site isIndexable or not

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11362 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 510f7f60
......@@ -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' )
......
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