Merge pull request #28910 from mahsem/remove_plural

fix: remove_plural_from _modal
This commit is contained in:
Akhil Narang 2025-01-06 11:33:19 +05:30 committed by GitHub
commit e4ca94e88f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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", () => {

View file

@ -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,