Преглед изворни кода

fix: don't try to export empty report (#9482)

version-14
Shivam Mishra пре 5 година
committed by GitHub
родитељ
комит
80f9a5f9fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 5 додато и 0 уклоњено
  1. +5
    -0
      frappe/desk/query_report.py

+ 5
- 0
frappe/desk/query_report.py Прегледај датотеку

@@ -303,6 +303,11 @@ def export_query():
if file_format_type == "Excel":
data = run(report_name, filters)
data = frappe._dict(data)
if not data.columns:
frappe.respond_as_web_page(_("No data to export"),
_("You can try changing the filters of your report."))
return

columns = get_columns_dict(data.columns)

from frappe.utils.xlsxutils import make_xlsx


Loading…
Откажи
Сачувај