fix: use response html when use_html is 1
This commit is contained in:
parent
2e97ecd68d
commit
5bf6446f54
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ frappe.ui.form.on("Auto Repeat", {
|
|||
frappe.model.with_doc("Email Template", frm.doc.template, () => {
|
||||
let email_template = frappe.get_doc("Email Template", frm.doc.template);
|
||||
frm.set_value("subject", email_template.subject);
|
||||
frm.set_value("message", email_template.response);
|
||||
let message_value = email_template.response;
|
||||
if (email_template.use_html) message_value = email_template.response_html;
|
||||
frm.set_value("message", message_value);
|
||||
frm.refresh_field("subject");
|
||||
frm.refresh_field("message");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue