Merge pull request #7470 from frappe/forellana-digithinkit-patch-1
[FIX] Contact form breaks on existing lead
This commit is contained in:
commit
4440ac037f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user