mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix(hr_setting): fix translation method call (#18328)
This commit is contained in:
@@ -15,7 +15,7 @@ frappe.ui.form.on('HR Settings', {
|
|||||||
let policy = frm.doc.password_policy;
|
let policy = frm.doc.password_policy;
|
||||||
if (policy) {
|
if (policy) {
|
||||||
if (policy.includes(' ') || policy.includes('--')) {
|
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('-'));
|
frm.set_value('password_policy', policy.split(new RegExp(" |-", 'g')).filter((token) => token).join('-'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user