Commit ea0e9f55 authored by Ivan Tyagov's avatar Ivan Tyagov

Embedded File can also be considered an attachment.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42018 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5406f92
......@@ -95,7 +95,7 @@ elif same_type(to_url, \'\'):\n
# Attachments\n
if attachment_list is None:\n
attachment_list = []\n
document_type_list = context.getPortalDocumentTypeList()\n
document_type_list = [\'Embedded File\'] + list(context.getPortalDocumentTypeList())\n
for attachment in context.getAggregateValueList(portal_type=document_type_list):\n
mime_type, content = attachment.getMimeTypeAndContent()\n
name = attachment.getFilename()\n
......
929
\ No newline at end of file
932
\ No newline at end of file
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