diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml index 29f303613656bd23ab9a33ae5b2c524f40348ba7..bfb8c87226f345756c73694dc3b0e2dde1ef5ab4 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml @@ -58,13 +58,14 @@ response = request.RESPONSE\n \n from zExceptions import Unauthorized\n \n +format = None\n # Always force download of document even if format is supported\n # by browser\n -file_name = context.getStandardFileName(None)\n +file_name = context.getStandardFileName(format)\n response.setHeader(\'Content-disposition\', \'attachment; filename="%s"\' % file_name)\n \n try:\n - return context.index_html(request, response)\n + return context.index_html(request, response, format)\n except Unauthorized:\n msg = context.Base_translateString("You do not have enough permission for converting this document.")\n return context.Base_redirect(keep_items=dict(portal_status_message=msg))\n @@ -110,8 +111,9 @@ except Unauthorized:\n <string>response</string> <string>zExceptions</string> <string>Unauthorized</string> - <string>context</string> <string>None</string> + <string>format</string> + <string>context</string> <string>file_name</string> <string>msg</string> <string>dict</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 44e788259d45fff259b6745ca106e76ecebb8107..08ae03db58def725778b2a4c76b0d2f2d5c68a19 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1646 \ No newline at end of file +1650 \ No newline at end of file