[file] [patch fix]

This commit is contained in:
Rushabh Mehta 2013-04-10 16:16:59 +05:30
parent 7c179bd00c
commit 1b35b1aa62

View File

@ -11,8 +11,9 @@ def execute():
fieldname='file_list' and fieldtype='Text'"""): fieldname='file_list' and fieldtype='Text'"""):
if doctype in singles: if doctype in singles:
doc = webnotes.doc(doctype, doctype) doc = webnotes.doc(doctype, doctype)
update_for_doc(doctype, doc) if doc.file_list:
webnotes.conn.set_value(doctype, None, "file_list", None) update_for_doc(doctype, doc)
webnotes.conn.set_value(doctype, None, "file_list", None)
else: else:
try: try:
for doc in webnotes.conn.sql("""select name, file_list from `tab%s` where for doc in webnotes.conn.sql("""select name, file_list from `tab%s` where