Commit 60313d77 authored by Aurel's avatar Aurel Committed by Jérome Perrin

format might not be present

parent 1ebefce8
......@@ -2,7 +2,7 @@
from Products.ERP5Type.Message import translateString
portal = context.getPortalObject()
request = portal.REQUEST
report_format = request_form['format']
report_format = request_form.get('format', '')
if portal.portal_preferences.getPreferredDeferredReportStoredAsDocument():
request_form['format'] = None
......
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