mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
perf: Skip fetching non-existing call log (#47930)
This commit is contained in:
@@ -202,6 +202,8 @@ def get_linked_call_logs(doctype, docname):
|
||||
fields=["parent"],
|
||||
filters={"parenttype": "Call Log", "link_doctype": doctype, "link_name": docname},
|
||||
)
|
||||
if not logs:
|
||||
return []
|
||||
|
||||
logs = {log.parent for log in logs}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user