From 56f29cbb27dc445253fd3889c3a178ea4b50f5a6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 2 May 2014 18:16:45 +0530 Subject: [PATCH] Fixed contact page response. Fixes #1557 --- erpnext/templates/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/templates/utils.py b/erpnext/templates/utils.py index 7ba4a9d911..d3c93eb24c 100644 --- a/erpnext/templates/utils.py +++ b/erpnext/templates/utils.py @@ -7,8 +7,9 @@ import frappe @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 @@ def send_message(subject="Website Query", message="", sender="", status="Open"): add_sales_communication(subject or "Website Query", message, sender, sender, mail=None, status=status) + return res