From 151ec5efa7c4968e1b3942431f8804c0724d3133 Mon Sep 17 00:00:00 2001 From: gshmu Date: Fri, 18 Jan 2019 16:03:28 +0800 Subject: [PATCH] fix: Msgprint with multiple messages should also consider indicator (#6780) * fix had title and indicator but array message. * fix: Pass object to msgprint directly --- frappe/public/js/frappe/ui/messages.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/messages.js b/frappe/public/js/frappe/ui/messages.js index 5231e5a449..ed3d4c1f64 100644 --- a/frappe/public/js/frappe/ui/messages.js +++ b/frappe/public/js/frappe/ui/messages.js @@ -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; }