mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Support Ticket: set resolution_date as None if missing
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user