get post fix

This commit is contained in:
Rushabh Mehta 2013-01-31 22:05:39 +05:30
parent 92455dc7ae
commit fdc629be4d
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ erpnext.send_message = function(opts) {
}
$.ajax({
method: "POST",
type: "POST",
url: "server.py",
data: {
cmd: "website.helpers.contact.send_message",

View File

@ -32,7 +32,7 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
return
# make lead / communication
name = webnotes.conn.get_value("Lead", {"email_id": sender}, "name")
if name:
lead = webnotes.model_wrapper("Lead", name)