Commit 97135d13 authored by Aurel's avatar Aurel

format might not be present

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