Merge branch 'notification-center' of https://github.com/shreyasp/erpnext into shreyasp-notification-center

This commit is contained in:
Nabin Hait 2016-10-07 16:37:10 +05:30
commit 9bfef84545

View File

@ -9,7 +9,9 @@ frappe.ui.form.on("Notification Control", {
frm.set_value("custom_message", frm.doc[frm.events.get_fieldname(frm)]);
},
set_message: function(frm) {
frm.set_value(frm.events.get_fieldname(frm), frm.doc.custom_message);
if(frm.doc.select_transaction && frm.doc.select_transaction !== " ") {
frm.set_value(frm.events.get_fieldname(frm), frm.doc.custom_message);
}
frm.save();
},
get_fieldname: function(frm) {