fix: fix ambiguous column error when going to next doc
This commit is contained in:
parent
af67d81b7b
commit
84d8db2dff
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ def get_next(doctype, value, prev, filters, sort_order, sort_field):
|
|||
res = frappe.get_list(doctype,
|
||||
fields = ["name"],
|
||||
filters = filters,
|
||||
order_by = sort_field + " " + sort_order,
|
||||
order_by = "`tab{0}`.{1}".format(doctype, sort_field) + " " + sort_order,
|
||||
limit_start=0, limit_page_length=1, as_list=True)
|
||||
|
||||
if not res:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue