mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-16 16:08:39 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user