mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 07:01:56 +00:00
refactor: parse native JSON request args in stock/doctype/warehouse/warehouse.py
Use frappe.parse_json instead of json.loads so the whitelisted endpoints accept native JSON types (list/dict/bool) in addition to JSON strings.
This commit is contained in:
@@ -176,8 +176,7 @@ def get_children(
|
||||
if is_root:
|
||||
parent = ""
|
||||
|
||||
if isinstance(include_disabled, str):
|
||||
include_disabled = json.loads(include_disabled)
|
||||
include_disabled = frappe.parse_json(include_disabled)
|
||||
|
||||
fields = ["name as value", "is_group as expandable"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user