From 62b5c7fc1fbad7b700f4ae940b9e1630bde56285 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 13 Dec 2012 15:14:58 +0530 Subject: [PATCH 1/2] fix in task_list --- projects/doctype/task/task_list.js | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/doctype/task/task_list.js b/projects/doctype/task/task_list.js index 724505cae48..536168631f6 100644 --- a/projects/doctype/task/task_list.js +++ b/projects/doctype/task/task_list.js @@ -5,7 +5,6 @@ wn.doclistviews['Task'] = wn.views.ListView.extend({ this.fields = this.fields.concat([ '`tabTask`.subject', '`tabTask`.project', - '`tabTask`.modified', '`tabTask`.status', '`tabTask`.opening_date', '`tabTask`.priority', From 8a4ceb98c2f2cde832be407a58c1d1f1025f3302 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 13 Dec 2012 15:24:33 +0530 Subject: [PATCH 2/2] remove hyphen from file_list --- patches/december_2012/file_list_rename.py | 10 ++++++++++ patches/patch_list.py | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 patches/december_2012/file_list_rename.py diff --git a/patches/december_2012/file_list_rename.py b/patches/december_2012/file_list_rename.py new file mode 100644 index 00000000000..52657ac2d65 --- /dev/null +++ b/patches/december_2012/file_list_rename.py @@ -0,0 +1,10 @@ +import webnotes + +def execute(): + for dt in webnotes.conn.sql("""select distinct parent from tabDocField + where fieldname='file_list'"""): + try: + webnotes.conn.sql("""update `tab%s` set file_list = + replace(file_list, "-", "")""" % dt[0]) + except Exception, e: + if e.args[0]!=1146: raise e \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 0b079b8db8b..645f18ce4d3 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -733,4 +733,8 @@ patch_list = [ 'patch_module': 'patches.december_2012', 'patch_file': 'fix_default_print_format', }, + { + 'patch_module': 'patches.december_2012', + 'patch_file': 'file_list_rename', + }, ] \ No newline at end of file