From 2a5c185bda488e8f9cc5a446cf569c626bf11c5a Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Fri, 3 Dec 2010 16:15:47 +0000
Subject: [PATCH] read filename from getFilename

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41110 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../SkinTemplateItem/portal_skins/erp5_base/Event_send.xml   | 5 ++---
 bt5/erp5_base/bt/revision                                    | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml
index c22d37b850..fd0cd19cdc 100644
--- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml
+++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml
@@ -98,7 +98,7 @@ if attachment_list is None:\n
 document_type_list = context.getPortalDocumentTypeList()\n
 for attachment in context.getAggregateValueList(portal_type=document_type_list):\n
   mime_type, content = attachment.getMimeTypeAndContent()\n
-  name = attachment.getReference()\n
+  name = attachment.getFilename()\n
 \n
   attachment_list.append({\'mime_type\':mime_type,\n
                           \'content\':content,\n
@@ -211,8 +211,7 @@ if download:\n
                             <string>content</string>
                             <string>name</string>
                             <string>attachment_url</string>
-                            <string>append</string>
-                            <string>$append0</string>
+                            <string>$list0</string>
                             <string>i</string>
                             <string>ord</string>
                             <string>mail_message</string>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index c6a6d63ac8..7bfae052e1 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-902
\ No newline at end of file
+905
\ No newline at end of file
-- 
2.30.9