fixes in patch

This commit is contained in:
Nabin Hait 2013-02-07 10:58:15 +05:30
parent 79b8ca8f68
commit 7e0b9a4212

View File

@ -7,5 +7,6 @@ def execute():
`tabLeave Application`.employee = `tabEmployee`.name""")
company = webnotes.conn.get_default("company")
webnotes.conn.sql("""update `tabLeave Application`
set company = %s where ifnull(company,'')=''""", company)
if company:
webnotes.conn.sql("""update `tabLeave Application`
set company = %s where ifnull(company,'')=''""", company)