fix: use get_list to only fetch permitted records
This commit is contained in:
parent
f5fed5b4be
commit
8955f079a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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=["*"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue