check for mandatory field before frappe.call (#8705)

This commit is contained in:
Manas Solanki 2017-05-05 17:28:09 +05:30 committed by Nabin Hait
parent 42343bbc2c
commit 65c8466622

View File

@ -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) {