mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> fix: don't attempt to set gender from salutation (#40997)
This commit is contained in:
@@ -18,18 +18,6 @@ erpnext.setup.EmployeeController = class EmployeeController extends frappe.ui.fo
|
|||||||
refresh() {
|
refresh() {
|
||||||
erpnext.toggle_naming_series();
|
erpnext.toggle_naming_series();
|
||||||
}
|
}
|
||||||
|
|
||||||
salutation() {
|
|
||||||
if (this.frm.doc.salutation) {
|
|
||||||
this.frm.set_value(
|
|
||||||
"gender",
|
|
||||||
{
|
|
||||||
Mr: "Male",
|
|
||||||
Ms: "Female",
|
|
||||||
}[this.frm.doc.salutation]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
frappe.ui.form.on("Employee", {
|
frappe.ui.form.on("Employee", {
|
||||||
|
|||||||
Reference in New Issue
Block a user