mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
Merge pull request #45816 from frappe/mergify/bp/version-15-hotfix/pr-45747
fix: Handle Empty JSON in Report Parsing (backport #45747)
This commit is contained in:
@@ -27,7 +27,7 @@ def update_reference_reports(reference_report):
|
|||||||
|
|
||||||
|
|
||||||
def update_report_json(report):
|
def update_report_json(report):
|
||||||
report_json = json.loads(report.json)
|
report_json = json.loads(report.json) if report.get("json") else {}
|
||||||
report_filter = report_json.get("filters")
|
report_filter = report_json.get("filters")
|
||||||
|
|
||||||
if not report_filter:
|
if not report_filter:
|
||||||
|
|||||||
Reference in New Issue
Block a user