Przeglądaj źródła

[hotfix] minor fixes in the Email Communication subject field (#4278)

version-14
Makarand Bauskar 7 lat temu
committed by Rushabh Mehta
rodzic
commit
229f676645
1 zmienionych plików z 6 dodań i 1 usunięć
  1. +6
    -1
      frappe/public/js/frappe/views/communication.js

+ 6
- 1
frappe/public/js/frappe/views/communication.js Wyświetl plik

@@ -149,7 +149,12 @@ frappe.views.CommunicationComposer = Class.extend({
if (this.frm.subject_field && this.frm.doc[this.frm.subject_field]) { if (this.frm.subject_field && this.frm.doc[this.frm.subject_field]) {
this.subject = __("Re: {0}", [this.frm.doc[this.frm.subject_field]]); this.subject = __("Re: {0}", [this.frm.doc[this.frm.subject_field]]);
} else { } else {
this.subject = __(this.frm.doctype) + ': ' + this.frm[this.frm.meta.title_field || name];
let title = this.frm.doc.name;
if(this.frm.meta.title_field && this.frm.doc[this.frm.meta.title_field]
&& this.frm.doc[this.frm.meta.title_field] != this.frm.doc.name) {
title = `${this.frm.doc[this.frm.meta.title_field]} (#${this.frm.doc.name})`;
}
this.subject = `${__(this.frm.doctype)}: ${title}`;
} }
} }
} }


Ładowanie…
Anuluj
Zapisz