fix(company): using String.prototype.bold method instead of frappe.utils.bold on company deletion prompt (#56441)

This commit is contained in:
Diptanil Saha
2026-06-25 00:49:27 +05:30
committed by GitHub
parent db8a26a3af
commit 414b3665c1

View File

@@ -208,7 +208,7 @@ frappe.ui.form.on("Company", {
reqd: 1, reqd: 1,
description: __( description: __(
"Please make sure you really want to delete all the transactions for {0}. Your master data will remain as it is. This action cannot be undone.", "Please make sure you really want to delete all the transactions for {0}. Your master data will remain as it is. This action cannot be undone.",
[frappe.utils.bold(frm.doc.name)] [frappe.utils.escape_html(frm.doc.name).bold()]
), ),
}, },
function (data) { function (data) {
@@ -228,7 +228,9 @@ frappe.ui.form.on("Company", {
}, },
}); });
}, },
__("Delete all the Transactions for {0}", [frappe.utils.bold(frm.doc.name)]), __("Delete all the Transactions for {0}", [
frappe.utils.escape_html(frm.doc.name).bold(),
]),
__("Delete") __("Delete")
); );
d.get_primary_btn().addClass("btn-danger"); d.get_primary_btn().addClass("btn-danger");