[fix] When composing email via timeline, if no last email, set subject as [DocType]: [Name]

This commit is contained in:
Anand Doshi 2015-06-23 19:54:55 -04:00
parent 265dbd1473
commit 69ca8a73d5

View file

@ -118,6 +118,10 @@ frappe.views.CommunicationComposer = Class.extend({
this.subject = "Re: " + this.subject;
}
}
if (!this.subject) {
this.subject = __(this.frm.doctype) + ': ' + this.frm.docname;
}
}
},