fix: Use get_all instead of get_list

This commit is contained in:
Suraj Shetty 2019-09-25 11:27:02 +05:30 committed by GitHub
parent e9c44371b8
commit 2b3b166386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ class Event(Document):
["Communication Link", "link_doctype", "=", participant.reference_doctype],
["Communication Link", "link_name", "=", participant.reference_docname]
]
comms = frappe.get_list("Communication", filters=filters, fields=["name"], ignore_permissions=True)
comms = frappe.get_all("Communication", filters=filters, fields=["name"])
if comms:
for comm in comms: