fix: convert string to int

This commit is contained in:
Shariq Ansari 2023-06-13 16:23:39 +05:30
parent 82464a4149
commit 9e0ed9d2a2

View file

@ -202,11 +202,13 @@ def get_versions(doc):
@frappe.whitelist()
def get_communications(doctype, name, start=0, limit=20):
from frappe.utils import cint
doc = frappe.get_doc(doctype, name)
if not doc.has_permission("read"):
raise frappe.PermissionError
return _get_communications(doctype, name, start, limit)
return _get_communications(doctype, name, cint(start), cint(limit))
def get_comments(