From ce7acf564a85a966c34cd441955cd4910a8198b4 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Mon, 29 Nov 2004 09:54:28 +0000 Subject: [PATCH] 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 --- product/ERP5Type/CopySupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/CopySupport.py b/product/ERP5Type/CopySupport.py index 38ebe4edb5..48102eee20 100755 --- a/product/ERP5Type/CopySupport.py +++ b/product/ERP5Type/CopySupport.py @@ -189,7 +189,7 @@ class CopyContainer: # Add info about copy to edit workflow REQUEST = get_request() - if REQUEST.get('__cp', None) : + if REQUEST is not None and REQUEST.get('__cp', None) : pw = self.restrictedTraverse("portal_workflow") copied_item_list = _cb_decode(REQUEST['__cp'])[1] # Guess source item -- 2.30.9