From 452d9042fcc6764ceb7e4605786e3d8938865a25 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 19 Jan 2018 18:04:53 +0530 Subject: [PATCH 1/2] [Fix] Showing today's date as communication date for old emails in the popup --- frappe/desk/form/load.py | 2 +- frappe/public/js/frappe/views/communication.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/desk/form/load.py b/frappe/desk/form/load.py index b09a23cbb4..9e12de718e 100644 --- a/frappe/desk/form/load.py +++ b/frappe/desk/form/load.py @@ -138,7 +138,7 @@ def get_communication_data(doctype, name, start=0, limit=20, after=None, fields= '''Returns list of communications for a given document''' if not fields: fields = '''name, communication_type, - communication_medium, comment_type, + communication_medium, comment_type, communication_date, content, sender, sender_full_name, creation, subject, delivery_status, _liked_by, timeline_doctype, timeline_name, reference_doctype, reference_name, diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 59808efa98..695f6eb58d 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -585,12 +585,13 @@ frappe.views.CommunicationComposer = Class.extend({ .replace(/<meta[\s\S]*meta>/g, '') // remove tags .replace(/<style[\s\S]*<\/style>/g, ''); // // remove