fix:Sibling child table filtering for duplacacy on student form

This commit is contained in:
Khushal Trivedi 2019-12-11 15:24:39 +05:30
parent 4c24fb1efc
commit 03e770782a

View File

@ -46,7 +46,6 @@ frappe.ui.form.on('Student Sibling', {
siblings_add: function(frm){
frm.fields_dict['siblings'].grid.get_field('student').get_query = function(doc){
let sibling_list = [frm.doc.name];
if(!doc.__islocal) sibling_list.push(doc.student);
$.each(doc.siblings, function(idx, val){
if (val.student && val.studying_in_same_institute == 'YES') {
sibling_list.push(val.student);