check for mandatory field before frappe.call (#8705)
This commit is contained in:
parent
42343bbc2c
commit
65c8466622
@ -42,7 +42,7 @@ frappe.ui.form.on("Student Group", {
|
||||
},
|
||||
|
||||
get_students: function(frm) {
|
||||
if (frm.doc.group_based_on != "Activity") {
|
||||
if (frm.doc.group_based_on == "Batch" || frm.doc.group_based_on == "Course") {
|
||||
var student_list = [];
|
||||
var max_roll_no = 0;
|
||||
$.each(frm.doc.students, function(i,d) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user