fix: load 21 communications to verify load more button is required or not.
This commit is contained in:
parent
00e5dabef1
commit
76cc712f35
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue