mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
Merge pull request #7470 from frappe/forellana-digithinkit-patch-1
[FIX] Contact form breaks on existing lead
This commit is contained in:
@@ -34,6 +34,8 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
|
|||||||
|
|
||||||
if customer:
|
if customer:
|
||||||
opportunity.customer = customer
|
opportunity.customer = customer
|
||||||
|
elif lead:
|
||||||
|
opportunity.lead = lead
|
||||||
else:
|
else:
|
||||||
opportunity.lead = new_lead.name
|
opportunity.lead = new_lead.name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user