Browse Source

fix: signature should be an empty string by default

(would become undefined if the server message was empty)
version-14
barredterra 4 years ago
committed by Suraj Shetty
parent
commit
a720efdbd0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/views/communication.js

+ 1
- 1
frappe/public/js/frappe/views/communication.js View File

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

if (!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)) {


Loading…
Cancel
Save