fix: load 21 communications to verify load more button is required or not.

This commit is contained in:
Shariq Ansari 2023-07-04 12:36:53 +05:30
parent 00e5dabef1
commit 76cc712f35

View file

@ -91,7 +91,7 @@ def get_docinfo(doc=None, doctype=None, name=None):
if not doc.has_permission("read"):
raise frappe.PermissionError
all_communications = _get_communications(doc.doctype, doc.name)
all_communications = _get_communications(doc.doctype, doc.name, limit=21)
automated_messages = [
msg for msg in all_communications if msg["communication_type"] == "Automated Message"
]