mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 12:08:26 +00:00
added option to add status in Support Ticket created through website
This commit is contained in:
@@ -11,13 +11,13 @@ max_tickets_per_hour = 200
|
||||
@webnotes.whitelist(allow_guest=True)
|
||||
def send_message():
|
||||
from webnotes.model.doc import Document
|
||||
args = webnotes.form_dict
|
||||
|
||||
d = Document('Support Ticket')
|
||||
d.subject = webnotes.form_dict.get('subject', 'Website Query')
|
||||
d.description = webnotes.form_dict.get('message')
|
||||
d.raised_by = webnotes.form_dict.get('sender')
|
||||
|
||||
d.status = webnotes.form_dict.get("status") or "Open"
|
||||
|
||||
if not d.description:
|
||||
webnotes.response["message"] = 'Please write something'
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user