[minor] don't override subject in std reply

This commit is contained in:
pratu16x7 2017-05-02 01:08:09 +05:30 committed by Nabin Hait
parent 73af73c2e7
commit 943bb2dfd5

View file

@ -166,6 +166,7 @@ frappe.views.CommunicationComposer = Class.extend({
var content_field = me.dialog.fields_dict.content;
var subject_field = me.dialog.fields_dict.subject;
var content = content_field.get_value() || "";
var subject = subject_field.get_value() || "";
parts = content.split('<!-- salutation-ends -->');
@ -176,7 +177,9 @@ frappe.views.CommunicationComposer = Class.extend({
}
content_field.set_input(content.join(''));
subject_field.set_input(reply.subject);
if(subject === "") {
subject_field.set_input(reply.subject);
}
me.reply_added = standard_reply;
}