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

Handle error when _user_tags column is added on the fly (#3854)

version-14
Faris Ansari 8 лет назад
committed by Rushabh Mehta
Родитель
Сommit
76a12ca5b6
1 измененных файлов: 6 добавлений и 1 удалений
  1. +6
    -1
      frappe/desk/reportview.py

+ 6
- 1
frappe/desk/reportview.py Просмотреть файл

@@ -240,7 +240,12 @@ def get_stats(stats, doctype, filters=[]):
filters = json.loads(filters)
stats = {}

columns = frappe.db.get_table_columns(doctype)
try:
columns = frappe.db.get_table_columns(doctype)
except MySQLdb.OperationalError:
# raised when _user_tags column is added on the fly
columns = []

for tag in tags:
if not tag in columns: continue
try:


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