Merge pull request #9433 from tundebabzy/issue-9424

Errors due to a single quote in Supplier's name #9424
This commit is contained in:
Nabin Hait
2017-07-06 15:22:16 +05:30
committed by GitHub
2 changed files with 39 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ def get_supplier():
def check_supplier_has_docname_access(supplier):
status = True
if frappe.form_dict.name not in frappe.db.sql_list("""select parent from `tabRequest for Quotation Supplier`
where supplier = '{supplier}'""".format(supplier=supplier)):
where supplier = %s""", (supplier,)):
status = False
return status