mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
check for mandatory field before frappe.call (#8705)
This commit is contained in:
committed by
Nabin Hait
parent
42343bbc2c
commit
65c8466622
@@ -42,7 +42,7 @@ frappe.ui.form.on("Student Group", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get_students: function(frm) {
|
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 student_list = [];
|
||||||
var max_roll_no = 0;
|
var max_roll_no = 0;
|
||||||
$.each(frm.doc.students, function(i,d) {
|
$.each(frm.doc.students, function(i,d) {
|
||||||
|
|||||||
Reference in New Issue
Block a user