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

[fix] Query Report - initialize columns and results

version-14
Anand Doshi 11 лет назад
Родитель
Сommit
c20fde58fa
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      frappe/widgets/query_report.py

+ 1
- 0
frappe/widgets/query_report.py Просмотреть файл

@@ -84,6 +84,7 @@ def run(report_name, filters=()):
frappe.msgprint(_("Must have report permission to access this report."),
raise_exception=True)

columns, results = [], []
if report.report_type=="Query Report":
if not report.query:
frappe.msgprint(_("Must specify a Query to run"), raise_exception=True)


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