Commit 17e96eda authored by Nicolas Delaby's avatar Nicolas Delaby

Read mimetype of builder (ODF) instead of page_template (xml) to return

expected filename by default


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1249170
......@@ -575,7 +575,7 @@ class OOoTemplate(ZopePageTemplate):
extension = None
mimetypes_registry = self.getPortalObject().mimetypes_registry
mimetype_object_list = mimetypes_registry.lookup(self.content_type)
mimetype_object_list = mimetypes_registry.lookup(ooo_builder.getMimeType())
for mimetype_object in mimetype_object_list:
if mimetype_object.extensions:
extension = mimetype_object.extensions[0]
......
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