begin transaction after commit in support ticket
diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py
index de596f9..03511c3 100644
--- a/erpnext/support/doctype/support_ticket/__init__.py
+++ b/erpnext/support/doctype/support_ticket/__init__.py
@@ -89,6 +89,7 @@
 				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 @@
 				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=[]):