Commit 8fd1ef67 authored by Nicolas Delaby's avatar Nicolas Delaby

Add missing argument in setattr for copy_value, thanks seb

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12173 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5700cd65
...@@ -819,7 +819,7 @@ class Base( CopyContainer, ...@@ -819,7 +819,7 @@ class Base( CopyContainer,
value += [method()] # We should add depends here value += [method()] # We should add depends here
if copy_value: if copy_value:
if not hasattr(self, storage_id): if not hasattr(self, storage_id):
setattr(self, value) setattr(self, storage_id, value)
# Pop context # Pop context
del TRANSACTION._erp5_acquisition_stack[acquisition_key] del TRANSACTION._erp5_acquisition_stack[acquisition_key]
return value return value
......
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