浏览代码
Merge pull request #14295 from frappe/mergify/bp/develop/pr-14291
fix: set correct title in links table (backport #14291)
version-14
Suraj Shetty
3 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
1 次删除
-
frappe/contacts/address_and_contact.py
|
|
@@ -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 |