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

Update cleanup_list_settings.py

version-14
Nabin Hait 8 лет назад
committed by GitHub
Родитель
Сommit
64e178f6e0
1 измененных файлов: 3 добавлений и 1 удалений
  1. +3
    -1
      frappe/patches/v7_0/cleanup_list_settings.py

+ 3
- 1
frappe/patches/v7_0/cleanup_list_settings.py Просмотреть файл

@@ -7,6 +7,8 @@ def execute():
for ls in list_settings:
if ls and ls.data:
data = json.loads(ls.data)
if not data.has_key("fields"):
continue
fields = data["fields"]
for field in fields:
if "name as" in field:
@@ -15,4 +17,4 @@ def execute():
frappe.db.sql("update __ListSettings set data = %s where user=%s and doctype=%s",
(json.dumps(data), ls.user, ls.doctype))

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