fix: date validation on student form, instructor duplicacy fix on student grp, instructor with same employee id fix

This commit is contained in:
Khushal Trivedi 2019-12-24 14:02:31 +05:30
parent ee9aea4feb
commit e57f1c995d

View File

@ -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]] };
};