|
|
@@ -94,6 +94,7 @@ def get_docinfo(doc=None, doctype=None, name=None): |
|
|
|
frappe.response["docinfo"] = { |
|
|
|
"attachments": get_attachments(doc.doctype, doc.name), |
|
|
|
"communications": _get_communications(doc.doctype, doc.name), |
|
|
|
'total_comments': len(json.loads(doc.get('_comments') or '[]')), |
|
|
|
'versions': get_versions(doc), |
|
|
|
"assignments": get_assignments(doc.doctype, doc.name), |
|
|
|
"permissions": get_doc_permissions(doc), |
|
|
|