fix: link selection relevance
This commit is contained in:
parent
939fb8e277
commit
2155c52d36
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ def search_widget(doctype, txt, query=None, searchfield=None, start=0,
|
|||
from frappe.model.db_query import get_order_by
|
||||
order_by_based_on_meta = get_order_by(doctype, meta)
|
||||
# 2 is the index of _relevance column
|
||||
order_by = "2 , {0}, `tab{1}`.idx desc".format(order_by_based_on_meta, doctype)
|
||||
order_by = "_relevance, {0}, `tab{1}`.idx desc".format(order_by_based_on_meta, doctype)
|
||||
|
||||
ignore_permissions = True if doctype == "DocType" else (cint(ignore_user_permissions) and has_permission(doctype))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue