Merge pull request #7470 from frappe/forellana-digithinkit-patch-1

[FIX] Contact form breaks on existing lead
This commit is contained in:
Nabin Hait 2017-01-13 11:29:10 +05:30 committed by GitHub
commit 4440ac037f

View File

@ -34,6 +34,8 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
if customer:
opportunity.customer = customer
elif lead:
opportunity.lead = lead
else:
opportunity.lead = new_lead.name