fixed communication subject

This commit is contained in:
Rushabh Mehta 2013-02-13 09:42:30 +05:30
parent 64bb7bb289
commit ebdfb6f2d4

View file

@ -55,9 +55,14 @@ wn.views.CommunicationList = Class.extend({
},
add_reply: function() {
var subject = this.doc.subject;
if(!subject && this.list.length) {
// get subject from previous message
subject = this.list[0].subject;
}
new wn.views.CommunicationComposer({
doc: this.doc,
subject: this.doc.subject,
subject: subject,
recipients: this.recipients
})
},