fix in custom field patch

This commit is contained in:
Anand Doshi 2012-11-01 12:20:13 +05:30
parent 7a617b83fb
commit 35535e9931

View File

@ -6,6 +6,7 @@ def execute():
for name, insert_after in webnotes.conn.sql("""select name, insert_after for name, insert_after in webnotes.conn.sql("""select name, insert_after
from `tabCustom Field`"""): from `tabCustom Field`"""):
new_insert_after = regex.sub("", insert_after) if insert_after:
webnotes.conn.set_value("Custom Field", name, "insert_after", new_insert_after) new_insert_after = regex.sub("", insert_after)
webnotes.conn.set_value("Custom Field", name, "insert_after", new_insert_after)