Merge pull request #1149 from anandpdoshi/hotfix
In Website Contact form, if Support is selected from first dropdown, a S...
This commit is contained in:
commit
9fd2d79fc7
@ -65,8 +65,13 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
|
|||||||
if not website_send_message(subject, message, sender):
|
if not website_send_message(subject, message, sender):
|
||||||
return
|
return
|
||||||
|
|
||||||
# make lead / communication
|
if subject=="Support":
|
||||||
from selling.doctype.lead.get_leads import add_sales_communication
|
# create support ticket
|
||||||
add_sales_communication(subject or "Website Query", message, sender, sender,
|
from support.doctype.support_ticket.get_support_mails import add_support_communication
|
||||||
mail=None, status=status)
|
add_support_communication(subject, message, sender, mail=None)
|
||||||
|
else:
|
||||||
|
# make lead / communication
|
||||||
|
from selling.doctype.lead.get_leads import add_sales_communication
|
||||||
|
add_sales_communication(subject or "Website Query", message, sender, sender,
|
||||||
|
mail=None, status=status)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user