fix: correctly typecast disabled flag
This commit is contained in:
parent
796e958910
commit
a15b1dee95
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ def get_all_nodes(doctype, label, parent, tree_method, **filters):
|
|||
@frappe.whitelist()
|
||||
def get_children(doctype, parent="", include_disabled=False, **filters):
|
||||
if isinstance(include_disabled, str):
|
||||
include_disabled = bool(include_disabled)
|
||||
include_disabled = frappe.json.loads(include_disabled)
|
||||
return _get_children(doctype, parent, include_disabled=include_disabled)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue