From 64e178f6e0249b6b7a1f79021cb639abd53412fb Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 14 Sep 2016 17:22:33 +0530 Subject: [PATCH 1/2] Update cleanup_list_settings.py --- frappe/patches/v7_0/cleanup_list_settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/patches/v7_0/cleanup_list_settings.py b/frappe/patches/v7_0/cleanup_list_settings.py index ef12def852..711b908c34 100644 --- a/frappe/patches/v7_0/cleanup_list_settings.py +++ b/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)) - \ No newline at end of file + From c619c0f9fbf5ca8e9bf29abdbf493ae46c684c7e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 14 Sep 2016 17:54:00 +0600 Subject: [PATCH 2/2] bumped to version 7.0.32 --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index d51e35de27..f049c2e935 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json from .exceptions import * from .utils.jinja import get_jenv, get_template, render_template -__version__ = "7.0.31" +__version__ = "7.0.32" local = Local()