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:
parent
1c30523869
commit
151ec5efa7
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue