Commit 74489a64 authored by Sebastien Robin's avatar Sebastien Robin

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
parent e7b9a2ed
......@@ -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')
......
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