mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
begin transaction after commit in support ticket
This commit is contained in:
@@ -89,6 +89,7 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
webnotes.conn.commit()
|
webnotes.conn.commit()
|
||||||
# extract attachments
|
# extract attachments
|
||||||
self.save_attachments(st.doc, mail.attachments)
|
self.save_attachments(st.doc, mail.attachments)
|
||||||
|
webnotes.conn.begin()
|
||||||
return
|
return
|
||||||
|
|
||||||
from webnotes.model.doctype import get_property
|
from webnotes.model.doctype import get_property
|
||||||
@@ -117,9 +118,9 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
self.send_auto_reply(d)
|
self.send_auto_reply(d)
|
||||||
|
|
||||||
webnotes.conn.commit()
|
webnotes.conn.commit()
|
||||||
|
|
||||||
# extract attachments
|
# extract attachments
|
||||||
self.save_attachments(d, mail.attachments)
|
self.save_attachments(d, mail.attachments)
|
||||||
|
webnotes.conn.begin()
|
||||||
|
|
||||||
|
|
||||||
def save_attachments(self, doc, attachment_list=[]):
|
def save_attachments(self, doc, attachment_list=[]):
|
||||||
|
|||||||
Reference in New Issue
Block a user