fix in support ticket deletion

This commit is contained in:
Anand Doshi 2012-11-27 17:06:48 +05:30
parent 726963c153
commit 8e8f5f0878

View File

@ -137,5 +137,5 @@ class DocType(TransactionBase):
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,))