Commit def7ae7d authored by Aurel's avatar Aurel

getDefaultActivateParameterDict can return None instead of a dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c53f24b9
......@@ -130,7 +130,10 @@ class CopyContainer:
uid = getattr(aq_base(obj), 'uid', None)
if uid is not None:
activate_kw = obj.getDefaultActivateParameterDict()
try:
activate_kw["after_tag"] = str(uid)
except TypeError:
activate_kw = {"after_tag":str(uid),}
obj.setDefaultActivateParameters(**activate_kw)
for sub_obj in obj.objectValues():
self._recursiveSetActivityAfterTag(sub_obj)
......
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