fix: convert string to int
This commit is contained in:
parent
82464a4149
commit
9e0ed9d2a2
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue