fix(hr_setting): fix translation method call (#18328)
This commit is contained in:
parent
7697066cc2
commit
39c3cfa25d
@ -15,7 +15,7 @@ frappe.ui.form.on('HR Settings', {
|
||||
let policy = frm.doc.password_policy;
|
||||
if (policy) {
|
||||
if (policy.includes(' ') || policy.includes('--')) {
|
||||
frappe.msgprint(_("Password policy cannot contain spaces or simultaneous hyphens. The format will be restructured automatically"));
|
||||
frappe.msgprint(__("Password policy cannot contain spaces or simultaneous hyphens. The format will be restructured automatically"));
|
||||
}
|
||||
frm.set_value('password_policy', policy.split(new RegExp(" |-", 'g')).filter((token) => token).join('-'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user