Commit ce7acf56 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed manage_afterClone (Crashed when REQUEST is None).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b35b12ee
...@@ -189,7 +189,7 @@ class CopyContainer: ...@@ -189,7 +189,7 @@ class CopyContainer:
# Add info about copy to edit workflow # Add info about copy to edit workflow
REQUEST = get_request() REQUEST = get_request()
if REQUEST.get('__cp', None) : if REQUEST is not None and REQUEST.get('__cp', None) :
pw = self.restrictedTraverse("portal_workflow") pw = self.restrictedTraverse("portal_workflow")
copied_item_list = _cb_decode(REQUEST['__cp'])[1] copied_item_list = _cb_decode(REQUEST['__cp'])[1]
# Guess source item # Guess source item
......
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