Commit 9d9c75e6 authored by Aurel's avatar Aurel

save_and_remove action must also be taken into account when backuping

objects, as remove is call after installation during bt's installation process


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31112 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 12017094
......@@ -799,7 +799,7 @@ class ObjectTemplateItem(BaseTemplateItem):
subobjects_dict[subobject_id] = subobject_copy
return subobjects_dict
# XXX btsave is for backward compatibility
if action == 'backup' or action == 'btsave':
if action == 'backup' or action == 'btsave' or action == 'save_and_remove':
subobjects_dict = self.portal_trash.backupObject(trashbin, container_path, object_id, save=1, **kw)
elif action == 'install':
subobjects_dict = self.portal_trash.backupObject(trashbin, container_path, object_id, save=0, **kw)
......
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