ソースを参照

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

version-14
Shivam Mishra 5年前
committed by GitHub
コミット
80f9a5f9fe
この署名に対応する既知のキーがデータベースに存在しません GPGキー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


読み込み中…
キャンセル
保存