Support Ticket: set resolution_date as None if missing

This commit is contained in:
Anand Doshi 2014-07-16 11:27:25 +05:30
parent c58e6c0dff
commit c70d2d23a8

View File

@ -53,7 +53,8 @@ class SupportTicket(TransactionBase):
if self.status=="Closed" and status !="Closed":
self.resolution_date = now()
if self.status=="Open" and status !="Open":
self.resolution_date = ""
# if no date, it should be set as None and not a blank string "", as per mysql strict config
self.resolution_date = None
@frappe.whitelist()
def set_status(name, status):