[fix] check if academic_year exists (#13665)
This commit is contained in:
parent
c3fbc04aab
commit
492aff2a8b
@ -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"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user