mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
[minor] passed index for string format
This commit is contained in:
@@ -112,7 +112,7 @@ def fetch_students(doctype, txt, searchfield, start, page_len, filters):
|
||||
tuple(students + ["%%%s%%" % txt, start, page_len]))
|
||||
else:
|
||||
return frappe.db.sql("""select name, title from tabStudent
|
||||
where `{}` LIKE %s
|
||||
where `{0}` LIKE %s
|
||||
order by idx desc, name
|
||||
limit %s, %s""".format(searchfield),
|
||||
tuple(["%%%s%%" % txt, start, page_len]))
|
||||
|
||||
Reference in New Issue
Block a user