Fixed contact page response. Fixes #1557
diff --git a/erpnext/templates/utils.py b/erpnext/templates/utils.py
index 7ba4a9d..d3c93eb 100644
--- a/erpnext/templates/utils.py
+++ b/erpnext/templates/utils.py
@@ -7,8 +7,9 @@
@frappe.whitelist(allow_guest=True)
def send_message(subject="Website Query", message="", sender="", status="Open"):
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
if subject=="Support":
@@ -21,3 +22,4 @@
add_sales_communication(subject or "Website Query", message, sender, sender,
mail=None, status=status)
+ return res