From e57f1c995d1e0c35788eb1b4d437cb5b03d96f04 Mon Sep 17 00:00:00 2001 From: Khushal Trivedi Date: Tue, 24 Dec 2019 14:02:31 +0530 Subject: [PATCH] fix: date validation on student form, instructor duplicacy fix on student grp, instructor with same employee id fix --- erpnext/education/doctype/student_group/student_group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/education/doctype/student_group/student_group.js b/erpnext/education/doctype/student_group/student_group.js index 372e190af9..4165ce0f2e 100644 --- a/erpnext/education/doctype/student_group/student_group.js +++ b/erpnext/education/doctype/student_group/student_group.js @@ -128,7 +128,7 @@ frappe.ui.form.on('Student Group Instructor', { frm.fields_dict['instructors'].grid.get_field('instructor').get_query = function(doc){ let instructor_list = []; $.each(doc.instructors, function(idx, val){ - instructor_list.push(val.instructor); + instructor_list.push(val.instructor); }); return { filters: [['Instructor', 'name', 'not in', instructor_list]] }; };