From 3c01d85a3f5b873cf1eedd2f8906304cecdc79a7 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 18 Apr 2019 13:16:05 +0530 Subject: [PATCH] fix: User not able to make lead from the communication --- frappe/email/inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/inbox.py b/frappe/email/inbox.py index 9df4218d71..0ff3a4ddd8 100644 --- a/frappe/email/inbox.py +++ b/frappe/email/inbox.py @@ -145,7 +145,7 @@ def make_lead_from_communication(communication, ignore_communication_links=False lead_name = None if doc.sender: lead_name = frappe.db.get_value("Lead", {"email_id": doc.sender}) - if not lead_name and doc.mobile_no: + if not lead_name and doc.phone_no: lead_name = frappe.db.get_value("Lead", {"mobile_no": doc.phone_no}) if not lead_name: lead = frappe.get_doc({