Update api.py
This commit is contained in:
parent
0e38a965ad
commit
efe94886a8
1 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,10 @@ def handle():
|
|||
frappe.local.response.update({"data": doc})
|
||||
|
||||
if frappe.local.request.method=="PUT":
|
||||
data = json.loads(frappe.local.form_dict.data)
|
||||
if frappe.local.form_dict.data is None:
|
||||
data = json.loads(frappe.local.request.get_data())
|
||||
else:
|
||||
data = json.loads(frappe.local.form_dict.data)
|
||||
doc = frappe.get_doc(doctype, name)
|
||||
|
||||
if "flags" in data:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue