diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 6842cfbcd19479835f6cc5025d93025814cfc00d..e87bded003dd001171a628e926795373a6d8758c 100755 --- a/product/ERP5Type/Document/Folder.py +++ b/product/ERP5Type/Document/Folder.py @@ -73,7 +73,7 @@ class FolderMixIn(ExtensionClass.Base): ) # **kw) removed due to CMF bug new_instance = self[new_id] if kw is not None: new_instance._edit(force_update=1, **kw) - if immediate_reindex: self.immediateReindexObject() + if immediate_reindex: new_instance.immediateReindexObject() return new_instance security.declareProtected(Permissions.DeletePortalContent, 'deleteContent')