Commit 507f8a42 authored by Jérome Perrin's avatar Jérome Perrin

check that request is not None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25866 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc3a553a
...@@ -273,7 +273,8 @@ class CopyContainer: ...@@ -273,7 +273,8 @@ class CopyContainer:
REQUEST = get_request() REQUEST = get_request()
pw = getToolByName(self, 'portal_workflow') pw = getToolByName(self, 'portal_workflow')
if 'edit_workflow' in pw.getChainFor(self)\ if 'edit_workflow' in pw.getChainFor(self)\
and not REQUEST.get('is_business_template_installation', 0): and (REQUEST is None or
not REQUEST.get('is_business_template_installation', 0)):
if REQUEST is not None and REQUEST.get('__cp', None): if REQUEST is not None and REQUEST.get('__cp', None):
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