fix: education settings check
This commit is contained in:
parent
4673bed67e
commit
1915a60834
@ -27,7 +27,7 @@ frappe.ui.form.on('Student', {
|
||||
}
|
||||
|
||||
frappe.db.get_value('Education Settings', {name: 'Education Settings'}, 'user_creation_skip', (r) => {
|
||||
if (r.user_creation_skip === "0") {
|
||||
if (cint(r.user_creation_skip) !== 1) {
|
||||
frm.set_df_property('student_email_id', 'reqd', 1);
|
||||
}
|
||||
});
|
||||
|
@ -39,7 +39,7 @@ frappe.ui.form.on("Student Applicant", {
|
||||
});
|
||||
|
||||
frappe.db.get_value("Education Settings", {name: "Education Settings"}, "user_creation_skip", (r) => {
|
||||
if (r.user_creation_skip === "0") {
|
||||
if (cint(r.user_creation_skip) !== 1) {
|
||||
frm.set_df_property("student_email_id", "reqd", 1);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user