mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
[Fix] Allow user to save Notification Control without selecting transaction
This commit is contained in:
@@ -9,7 +9,9 @@ frappe.ui.form.on("Notification Control", {
|
|||||||
frm.set_value("custom_message", frm.doc[frm.events.get_fieldname(frm)]);
|
frm.set_value("custom_message", frm.doc[frm.events.get_fieldname(frm)]);
|
||||||
},
|
},
|
||||||
set_message: function(frm) {
|
set_message: function(frm) {
|
||||||
frm.set_value(frm.events.get_fieldname(frm), frm.doc.custom_message);
|
if(frm.doc.select_transaction) {
|
||||||
|
frm.set_value(frm.events.get_fieldname(frm), frm.doc.custom_message);
|
||||||
|
}
|
||||||
frm.save();
|
frm.save();
|
||||||
},
|
},
|
||||||
get_fieldname: function(frm) {
|
get_fieldname: function(frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user