mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix in support ticket attachment
This commit is contained in:
@@ -135,7 +135,7 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
from webnotes.utils.file_manager import save_file, add_file_list
|
from webnotes.utils.file_manager import save_file, add_file_list
|
||||||
for attachment in attachment_list:
|
for attachment in attachment_list:
|
||||||
fid = save_file(attachment['filename'], attachment['content'], 'Support')
|
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:
|
if not status:
|
||||||
doc.description = doc.description \
|
doc.description = doc.description \
|
||||||
+ "\nCould not attach: " + cstr(attachment['filename'])
|
+ "\nCould not attach: " + cstr(attachment['filename'])
|
||||||
|
|||||||
Reference in New Issue
Block a user