From 94850557c279d57c75c08672131313eb10d8f619 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 13 Dec 2012 18:53:31 +0530 Subject: [PATCH] fix in support ticket attachment --- support/doctype/support_ticket/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/doctype/support_ticket/__init__.py b/support/doctype/support_ticket/__init__.py index b477b964501..a53c76b939f 100644 --- a/support/doctype/support_ticket/__init__.py +++ b/support/doctype/support_ticket/__init__.py @@ -135,7 +135,7 @@ class SupportMailbox(POP3Mailbox): from webnotes.utils.file_manager import save_file, add_file_list for attachment in attachment_list: fid = save_file(attachment['filename'], attachment['content'], 'Support') - status = add_file_list('Support Ticket', doc.name, attachment['filename'], fid) + status = add_file_list('Support Ticket', doc.name, fid, fid) if not status: doc.description = doc.description \ + "\nCould not attach: " + cstr(attachment['filename'])