Commit c6e7f586 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a safe fallback if activity_kw is None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19564f95
......@@ -535,6 +535,8 @@ class Folder( CopyContainer, CMFBTreeFolder, Base, FolderMixIn):
BUG here : when creating a new base category
"""
if self.isIndexable:
if activate_kw is None:
activate_kw = {}
self.activate(group_method_id='portal_catalog/catalogObjectList', expand_method_id='getIndexableChildValueList', alternate_method_id='alternateReindexObject', **activate_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