fix: Error on updating docs via API

This commit is contained in:
Deepesh Garg 2021-07-13 19:11:07 +05:30
parent bb9f73b8f6
commit cf164fffba

View file

@ -82,7 +82,7 @@ def handle():
if frappe.local.request.method=="PUT":
data = get_request_form_data()
doc = frappe.get_doc(doctype, name)
doc = frappe.get_doc(doctype, name, for_update=True)
if "flags" in data:
del data["flags"]