diff --git a/cypress/integration/multi_select_dialog.js b/cypress/integration/multi_select_dialog.js index 7b30ad8c85..abf6604bec 100644 --- a/cypress/integration/multi_select_dialog.js +++ b/cypress/integration/multi_select_dialog.js @@ -41,7 +41,7 @@ context("MultiSelectDialog", () => { it("checks multi select dialog api works", () => { open_multi_select_dialog(); - cy.get_open_dialog().should("contain", "Select Contacts"); + cy.get_open_dialog().should("contain", "Select Contact"); }); it("checks for filters", () => { diff --git a/frappe/public/js/frappe/form/multi_select_dialog.js b/frappe/public/js/frappe/form/multi_select_dialog.js index 3c448e521b..d02ad0974c 100644 --- a/frappe/public/js/frappe/form/multi_select_dialog.js +++ b/frappe/public/js/frappe/form/multi_select_dialog.js @@ -77,8 +77,7 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog { } make() { - let doctype_plural = __(this.doctype).plural(); - let title = __("Select {0}", [this.for_select ? __("value") : doctype_plural]); + let title = __("Select {0}", [this.for_select ? __("value") : __(this.doctype)]); this.dialog = new frappe.ui.Dialog({ title: title,