fix: education settings check

This commit is contained in:
Rucha Mahabal 2020-09-10 12:13:58 +05:30
parent 4673bed67e
commit 1915a60834
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});

View File

@ -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);
}
});