Переглянути джерело

[minor] don't override subject in std reply

version-14
pratu16x7 8 роки тому
committed by Nabin Hait
джерело
коміт
943bb2dfd5
1 змінених файлів з 4 додано та 1 видалено
  1. +4
    -1
      frappe/public/js/frappe/views/communication.js

+ 4
- 1
frappe/public/js/frappe/views/communication.js Переглянути файл

@@ -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;
}


Завантаження…
Відмінити
Зберегти