Merge pull request #14295 from frappe/mergify/bp/develop/pr-14291
fix: set correct title in links table (backport #14291)
This commit is contained in:
commit
c322f4d065
1 changed files with 1 additions and 1 deletions
|
|
@ -178,4 +178,4 @@ def set_link_title(doc):
|
|||
for link in doc.links:
|
||||
if not link.link_title:
|
||||
linked_doc = frappe.get_doc(link.link_doctype, link.link_name)
|
||||
link.link_title = linked_doc.get("title_field") or linked_doc.get("name")
|
||||
link.link_title = linked_doc.get_title() or link.link_name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue