From 76ef96f24feccf7b1afc8c0020398205513e5ed3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 6 Sep 2012 07:53:37 +0530 Subject: [PATCH] begin transaction after commit in support ticket --- erpnext/support/doctype/support_ticket/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py index de596f95f9..03511c39f0 100644 --- a/erpnext/support/doctype/support_ticket/__init__.py +++ b/erpnext/support/doctype/support_ticket/__init__.py @@ -89,6 +89,7 @@ class SupportMailbox(POP3Mailbox): webnotes.conn.commit() # extract attachments self.save_attachments(st.doc, mail.attachments) + webnotes.conn.begin() return from webnotes.model.doctype import get_property @@ -117,9 +118,9 @@ class SupportMailbox(POP3Mailbox): self.send_auto_reply(d) webnotes.conn.commit() - # extract attachments self.save_attachments(d, mail.attachments) + webnotes.conn.begin() def save_attachments(self, doc, attachment_list=[]):