瀏覽代碼

fix: signature should be an empty string by default

(would become undefined if the server message was empty)
version-14
barredterra 4 年之前
committed by Suraj Shetty
父節點
當前提交
a720efdbd0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/public/js/frappe/views/communication.js

+ 1
- 1
frappe/public/js/frappe/views/communication.js 查看文件

@@ -726,7 +726,7 @@ frappe.views.CommunicationComposer = Class.extend({


if (!signature) { if (!signature) {
const res = await this.get_default_outgoing_email_account_signature(); const res = await this.get_default_outgoing_email_account_signature();
signature = "<!-- signature-included -->" + res.message.signature;
signature = res.message.signature ? "<!-- signature-included -->" + res.message.signature : "";
} }


if (signature && !frappe.utils.is_html(signature)) { if (signature && !frappe.utils.is_html(signature)) {


Loading…
取消
儲存