minor fixes in the assessment result tool (#11795)

This commit is contained in:
Manas Solanki 2017-11-30 11:39:06 +05:30 committed by Nabin Hait
parent ce63ab7602
commit f9cc56cd62
3 changed files with 9 additions and 7 deletions

View File

@ -31,15 +31,17 @@ frappe.ui.form.on('Assessment Result Tool', {
"student_group": frm.doc.student_group
},
callback: function(r) {
frm.doc.students = r.message;
frm.events.render_table(frm);
for (let value of r.message) {
if (!value.docstatus) {
frm.doc.show_submit = true;
break;
if (r.message) {
frm.doc.students = r.message;
frm.events.render_table(frm);
for (let value of r.message) {
if (!value.docstatus) {
frm.doc.show_submit = true;
break;
}
}
frm.events.submit_result(frm);
}
frm.events.submit_result(frm);
}
});
}