diff --git a/frappe/utils/data.py b/frappe/utils/data.py index e37e4e0c5e..86629a4b3d 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -2804,7 +2804,7 @@ def attach_expanded_links(doctype: str, docs: list, fields_to_expand: list): doctype_title_maps = {} for link_doctype, values in doctype_values.items(): - records = frappe.get_all( + records = frappe.get_list( link_doctype, filters={"name": ["in", list(values)]}, fields=["*"],