Merge pull request #28910 from mahsem/remove_plural
fix: remove_plural_from _modal
This commit is contained in:
commit
e4ca94e88f
2 changed files with 2 additions and 3 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue