Skip to content

Commit 1604c21

Browse files
authored
fix(list_opportunity_report): parameterized lost_reason (#54160)
1 parent 97c4cd1 commit 1604c21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/crm/report/lost_opportunity/lost_opportunity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_join(filters):
117117
join = """JOIN `tabOpportunity Lost Reason Detail`
118118
ON `tabOpportunity Lost Reason Detail`.parenttype = 'Opportunity' and
119119
`tabOpportunity Lost Reason Detail`.parent = `tabOpportunity`.name and
120-
`tabOpportunity Lost Reason Detail`.lost_reason = '{}'
121-
""".format(filters.get("lost_reason"))
120+
`tabOpportunity Lost Reason Detail`.lost_reason=%(lost_reason)s
121+
"""
122122

123123
return join

0 commit comments

Comments
 (0)