From 74489a6480250bddf03e1580582377ca7bdbbe9d Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 15 Jul 2004 11:06:02 +0000 Subject: [PATCH] reindex the new object in newContent instead of self git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1193 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Document/Folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 6842cfbcd1..e87bded003 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') -- 2.30.9