From 79eedf4fb71f2a31623f94f0650212e4d0f27e43 Mon Sep 17 00:00:00 2001 From: Alex Leach Date: Thu, 27 Nov 2025 08:40:59 +0000 Subject: [PATCH] refactor: Add get_content_field function to communication.js --- frappe/public/js/frappe/views/communication.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 20a4ae6ab1..38456fa9d7 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -252,6 +252,13 @@ frappe.views.CommunicationComposer = class { return fields; } + get_content_field() { + const content_field = this.dialog.fields_dict.use_html.value + ? this.dialog.fields_dict.html_content + : this.dialog.fields_dict.content; + return content_field; + } + get_default_recipients(fieldname) { if (this.frm?.events.get_email_recipients) { return (this.frm.events.get_email_recipients(this.frm, fieldname) || []).join(", ");