fix: Error on updating docs via API
This commit is contained in:
parent
bb9f73b8f6
commit
cf164fffba
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue