fix: Add likely missing escaps (#55574)

This commit is contained in:
Ankush Menat
2026-06-03 12:58:05 +05:30
committed by GitHub
parent 260cec3b86
commit b72cde73ba
11 changed files with 56 additions and 30 deletions

View File

@@ -31,7 +31,8 @@ class BulkTransactionLog(Document):
log_detail = qb.DocType("Bulk Transaction Log Detail")
has_records = frappe.db.sql(
f"select exists (select * from `tabBulk Transaction Log Detail` where date = '{self.name}');"
"select exists (select * from `tabBulk Transaction Log Detail` where date = %s);",
(self.name,),
)[0][0]
if not has_records:
raise frappe.DoesNotExistError