mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-19 01:18:43 +00:00
refactor: parse native JSON request args in manufacturing/doctype/bom/bom.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:
@@ -585,7 +585,7 @@ class BOM(WebsiteGenerator):
|
||||
if isinstance(kwargs, str):
|
||||
import json
|
||||
|
||||
kwargs = json.loads(kwargs)
|
||||
kwargs = frappe.parse_json(kwargs)
|
||||
|
||||
return kwargs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user