Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/support/doctype/support_ticket/support_ticket.py b/support/doctype/support_ticket/support_ticket.py
index e7f3077..fbab2b7 100644
--- a/support/doctype/support_ticket/support_ticket.py
+++ b/support/doctype/support_ticket/support_ticket.py
@@ -137,5 +137,5 @@
update_feed(self.doc)
def on_trash(self):
- webnotes.conn.sql("""update `tabCommunication set support_ticket=""
- where support_ticket=%s`""", self.doc.name)
+ webnotes.conn.sql("""update `tabCommunication` set support_ticket=NULL
+ where support_ticket=%s""", (self.doc.name,))