[fix] check if academic_year exists (#13665)

This commit is contained in:
Saurabh 2018-04-17 14:21:40 +05:30 committed by Nabin Hait
parent c3fbc04aab
commit 492aff2a8b

View File

@ -82,6 +82,8 @@ frappe.ui.form.on("Student Group", {
max_roll_no = d.group_roll_number;
}
});
if(frm.doc.academic_year) {
frappe.call({
method: "erpnext.education.doctype.student_group.student_group.get_students",
args: {
@ -112,6 +114,7 @@ frappe.ui.form.on("Student Group", {
}
}
})
}
} else {
frappe.msgprint(__("Select students manually for the Activity based Group"));
}