mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[patches] [fix] fixed an old patch
This commit is contained in:
@@ -9,7 +9,9 @@ def execute():
|
|||||||
|
|
||||||
for doctype in webnotes.conn.sql_list("""select parent from tabDocField where
|
for doctype in webnotes.conn.sql_list("""select parent from tabDocField where
|
||||||
fieldname='file_list'"""):
|
fieldname='file_list'"""):
|
||||||
update_file_list(doctype, singles)
|
# the other scenario is handled in p07_update_file_data_2
|
||||||
|
if doctype in singles:
|
||||||
|
update_file_list(doctype, singles)
|
||||||
|
|
||||||
webnotes.conn.sql("""delete from tabDocField where fieldname='file_list'
|
webnotes.conn.sql("""delete from tabDocField where fieldname='file_list'
|
||||||
and parent=%s""", doctype)
|
and parent=%s""", doctype)
|
||||||
|
|||||||
Reference in New Issue
Block a user