From 2f239dbe4ffb9f4477dd55de347b8eaecc6dc6fd Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 1 Feb 2022 10:16:24 +0530 Subject: [PATCH] fix: communication missing from form timeline --- frappe/desk/form/load.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/desk/form/load.py b/frappe/desk/form/load.py index 38b671d629..c03135b21a 100644 --- a/frappe/desk/form/load.py +++ b/frappe/desk/form/load.py @@ -91,8 +91,8 @@ def get_docinfo(doc=None, doctype=None, name=None): raise frappe.PermissionError all_communications = _get_communications(doc.doctype, doc.name) - automated_messages = filter(lambda x: x['communication_type'] == 'Automated Message', all_communications) - communications_except_auto_messages = filter(lambda x: x['communication_type'] != 'Automated Message', all_communications) + automated_messages = [msg for msg in all_communications if msg['communication_type'] == 'Automated Message'] + communications_except_auto_messages = [msg for msg in all_communications if msg['communication_type'] != 'Automated Message'] docinfo = frappe._dict(user_info = {})