Fixed contact page response. Fixes #1557
This commit is contained in:
parent
232954d4b9
commit
56f29cbb27
@ -7,8 +7,9 @@ import frappe
|
|||||||
@frappe.whitelist(allow_guest=True)
|
@frappe.whitelist(allow_guest=True)
|
||||||
def send_message(subject="Website Query", message="", sender="", status="Open"):
|
def send_message(subject="Website Query", message="", sender="", status="Open"):
|
||||||
from frappe.templates.pages.contact import send_message as website_send_message
|
from frappe.templates.pages.contact import send_message as website_send_message
|
||||||
|
res = website_send_message(subject, message, sender)
|
||||||
|
|
||||||
if not website_send_message(subject, message, sender):
|
if not res:
|
||||||
return
|
return
|
||||||
|
|
||||||
if subject=="Support":
|
if subject=="Support":
|
||||||
@ -21,3 +22,4 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
|
|||||||
add_sales_communication(subject or "Website Query", message, sender, sender,
|
add_sales_communication(subject or "Website Query", message, sender, sender,
|
||||||
mail=None, status=status)
|
mail=None, status=status)
|
||||||
|
|
||||||
|
return res
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user