mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +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"],
|
fields=["parent"],
|
||||||
filters={"parenttype": "Call Log", "link_doctype": doctype, "link_name": docname},
|
filters={"parenttype": "Call Log", "link_doctype": doctype, "link_name": docname},
|
||||||
)
|
)
|
||||||
|
if not logs:
|
||||||
|
return []
|
||||||
|
|
||||||
logs = {log.parent for log in logs}
|
logs = {log.parent for log in logs}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user