refactor: parse native JSON request args in support/doctype/issue/issue.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:
Mihir Kandoi
2026-06-24 20:37:35 +05:30
parent b3526db643
commit 7cbebc0545

View File

@@ -217,8 +217,8 @@ def get_issue_list(doctype, txt, filters, limit_start, limit_page_length=20, ord
@frappe.whitelist()
def set_multiple_status(names: str, status: str):
for name in json.loads(names):
def set_multiple_status(names: str | list, status: str):
for name in frappe.parse_json(names):
set_status(name, status)