Sfoglia il codice sorgente

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

version-14
Shivam Mishra 5 anni fa
committed by GitHub
parent
commit
80f9a5f9fe
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      frappe/desk/query_report.py

+ 5
- 0
frappe/desk/query_report.py Vedi File

@@ -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


Caricamento…
Annulla
Salva