From 005a28654b59f5d4ed54cd50ebafbd2335374da9 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Tue, 18 Jun 2019 11:29:00 +0530 Subject: [PATCH] fix(communication): Remember cc and bcc fields from last message as well (#7715) After closing New Email dialog, unlike content, recipients and subject fields cc and bcc fields were not stored. --- frappe/public/js/frappe/views/communication.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 027f1fd1b7..52f1f66f72 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -253,6 +253,8 @@ frappe.views.CommunicationComposer = Class.extend({ $.extend(last_edited_communication, { sender: me.dialog.get_value("sender"), recipients: me.dialog.get_value("recipients"), + cc: me.dialog.get_value("cc"), + bcc: me.dialog.get_value("bcc"), subject: me.dialog.get_value("subject"), content: me.dialog.get_value("content"), }); @@ -265,6 +267,8 @@ frappe.views.CommunicationComposer = Class.extend({ me.dialog.set_value("sender", last_edited_communication.sender || ""); me.dialog.set_value("subject", last_edited_communication.subject || ""); me.dialog.set_value("recipients", last_edited_communication.recipients || ""); + me.dialog.set_value("cc", last_edited_communication.cc || ""); + me.dialog.set_value("bcc", last_edited_communication.bcc || ""); me.dialog.set_value("content", last_edited_communication.content || ""); } }