Merge pull request #29984 from dj12djdjs/fix-rename-tool-msg
fix: rename tool show fail message
This commit is contained in:
commit
e9e2679dff
@ -30,7 +30,16 @@ frappe.ui.form.on("Rename Tool", {
|
||||
select_doctype: frm.doc.select_doctype
|
||||
},
|
||||
callback: function(r) {
|
||||
frm.get_field("rename_log").$wrapper.html(r.message.join("<br>"));
|
||||
let html = r.message.join("<br>");
|
||||
|
||||
if (r.exc) {
|
||||
r.exc = frappe.utils.parse_json(r.exc);
|
||||
if (Array.isArray(r.exc)) {
|
||||
html += "<br>" + r.exc.join("<br>");
|
||||
}
|
||||
}
|
||||
|
||||
frm.get_field("rename_log").$wrapper.html(html);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user