fix: handle filters passed as dict to client.get
This commit is contained in:
parent
0ae7248847
commit
7233c257c7
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ def get(doctype, name=None, filters=None, parent=None):
|
|||
check_parent_permission(parent, doctype)
|
||||
|
||||
if filters and not name:
|
||||
name = frappe.db.get_value(doctype, json.loads(filters))
|
||||
name = frappe.db.get_value(doctype, frappe.parse_json(filters))
|
||||
if not name:
|
||||
frappe.throw(_("No document found for given filters"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue