fix: Msgprint with multiple messages should also consider indicator (#6780)

* fix had title and indicator but array message.

* fix: Pass object to msgprint directly
This commit is contained in:
gshmu 2019-01-18 16:03:28 +08:00 committed by Faris Ansari
parent 1c30523869
commit 151ec5efa7

View file

@ -100,7 +100,12 @@ frappe.msgprint = function(msg, title) {
if(data.message instanceof Array) {
data.message.forEach(function(m) {
frappe.msgprint(m);
const msg = {
message: m,
indicator: data.indicator,
title: data.title
}
frappe.msgprint(msg);
});
return;
}