perf: avoid get_doc while fetching title field
This commit is contained in:
parent
87b4f3162c
commit
4f340f4aba
1 changed files with 1 additions and 1 deletions
|
|
@ -313,6 +313,6 @@ def get_link_title(doctype, docname):
|
|||
meta = frappe.get_meta(doctype)
|
||||
|
||||
if meta.title_field and meta.show_title_field_in_link:
|
||||
return frappe.get_cached_value(doctype, docname, meta.title_field)
|
||||
return frappe.db.get_value(doctype, docname, meta.title_field)
|
||||
|
||||
return docname
|
||||
Loading…
Add table
Reference in a new issue