Skip to content

Commit

Permalink
fix: sql syntax error in get_project_name method (#26145)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesis189 authored Jun 22, 2021
1 parent c6939f3 commit 943b46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
return frappe.db.sql("""select {fields} from `tabProject`
where
`tabProject`.status not in ("Completed", "Cancelled")
and {cond} {match_cond} {scond}
and {cond} {scond} {match_cond}
order by
if(locate(%(_txt)s, name), locate(%(_txt)s, name), 99999),
idx desc,
Expand Down

0 comments on commit 943b46a

Please sign in to comment.