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 9e46f91bc0f..2e8fc5e4fed 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -733,6 +733,10 @@ patch_list = [ 'patch_module': 'patches.december_2012', 'patch_file': 'fix_default_print_format', }, + { + 'patch_module': 'patches.december_2012', + 'patch_file': 'file_list_rename', + }, { 'patch_module': 'patches.december_2012', 'patch_file': 'replace_createlocal', 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',