fix: correctly typecast disabled flag

This commit is contained in:
Gursheen Anand 2023-12-21 18:30:16 +05:30
parent 796e958910
commit a15b1dee95

View file

@ -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)