Commit a2f1f5a0 authored by 's avatar

Fixed issue #2205: manage_afterClone hook on object copy was called before

the cloned object was reattached to the object tree, which caused reindexing
of copied objects to fail.
parent 525e4bbd
......@@ -83,7 +83,7 @@
#
##############################################################################
__doc__="""Copy interface"""
__version__='$Revision: 1.71 $'[11:-2]
__version__='$Revision: 1.72 $'[11:-2]
import sys, string, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps
......@@ -227,10 +227,11 @@ class CopyContainer(ExtensionClass.Base):
message=sys.exc_info()[1],
action ='manage_main')
ob=ob._getCopy(self)
ob.manage_afterClone(ob)
id=self._get_id(ob.getId())
ob._setId(id)
self._setObject(id, ob)
ob = self._getOb(id)
ob.manage_afterClone(ob)
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1,
......
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