[Erp5-report] r25866 - /erp5/trunk/products/ERP5Type/CopySupport.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 4 15:21:15 CET 2009
Author: jerome
Date: Wed Mar 4 15:21:14 2009
New Revision: 25866
URL: http://svn.erp5.org?rev=25866&view=rev
Log:
check that request is not None
Modified:
erp5/trunk/products/ERP5Type/CopySupport.py
Modified: erp5/trunk/products/ERP5Type/CopySupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CopySupport.py?rev=25866&r1=25865&r2=25866&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py [utf8] Wed Mar 4 15:21:14 2009
@@ -273,7 +273,8 @@
REQUEST = get_request()
pw = getToolByName(self, 'portal_workflow')
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):
copied_item_list = _cb_decode(REQUEST['__cp'])[1]
# Guess source item
More information about the Erp5-report
mailing list