Merge pull request #22217 from sahil28297/fix_set_company_healthcare_patch_develop
fix(patch): escape special characters in company field
This commit is contained in:
commit
959efe88f0
@ -7,4 +7,4 @@ def execute():
|
||||
for entry in doctypes:
|
||||
if frappe.db.exists('DocType', entry):
|
||||
frappe.reload_doc('Healthcare', 'doctype', entry)
|
||||
frappe.db.sql("update `tab{dt}` set company = '{company}' where ifnull(company, '') = ''".format(dt=entry, company=company))
|
||||
frappe.db.sql("update `tab{dt}` set company = {company} where ifnull(company, '') = ''".format(dt=entry, company=frappe.db.escape(company)))
|
||||
|
Loading…
Reference in New Issue
Block a user