Commit 7c0b87c7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

the first one in extension list in export filters is enough for getAllowedExtensionList() result.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 520db974
......@@ -141,7 +141,7 @@ class MimeMapper(object):
filter_type_dict = type_dict.get(filter_type)
if not ui_name:
ui_name = filter_type_dict.get("UIName")
filter_extension_list = filter_type_dict.get("Extensions")
filter_extension_list = filter_type_dict.get("Extensions")[:1]
mimetype = filter_type_dict.get("MediaType")
if not (filter_extension_list and mimetype):
continue
......
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