fix(load): Don't fetch Dynamic Link titles if missing doctype
This commit is contained in:
parent
2a75c27d17
commit
f5e99424ce
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ def get_title_values_for_link_and_dynamic_link_fields(doc, link_fields=None):
|
|||
|
||||
doctype = field.options if field.fieldtype == "Link" else doc.get(field.options)
|
||||
|
||||
meta = frappe.get_meta(doctype)
|
||||
meta = frappe.get_meta(doctype) if doctype else None
|
||||
if not meta or not meta.title_field or not meta.show_title_field_in_link:
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue