perf: avoid get_doc while fetching title field

This commit is contained in:
Saqib Ansari 2022-01-13 17:03:54 +05:30
parent 87b4f3162c
commit 4f340f4aba

View file

@ -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