Просмотр исходного кода

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

version-14
Shivam Mishra 5 лет назад
committed by GitHub
Родитель
Сommit
80f9a5f9fe
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 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


Загрузка…
Отмена
Сохранить