Support Ticket: set resolution_date as None if missing
This commit is contained in:
parent
c58e6c0dff
commit
c70d2d23a8
@ -53,7 +53,8 @@ class SupportTicket(TransactionBase):
|
|||||||
if self.status=="Closed" and status !="Closed":
|
if self.status=="Closed" and status !="Closed":
|
||||||
self.resolution_date = now()
|
self.resolution_date = now()
|
||||||
if self.status=="Open" and status !="Open":
|
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()
|
@frappe.whitelist()
|
||||||
def set_status(name, status):
|
def set_status(name, status):
|
||||||
|
Loading…
Reference in New Issue
Block a user