commit | f9cc56cd62d230a50d3b9a2019712e9cf9a2252c | [log] [tgz] |
---|---|---|
author | Manas Solanki <manas@erpnext.com> | Thu Nov 30 11:39:06 2017 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Nov 30 11:39:06 2017 +0530 |
tree | 190f63010cff250294aaf590b477c97de78c6819 | |
parent | ce63ab760252a25029688ac4031d6d488d8514e3 [diff] |
minor fixes in the assessment result tool (#11795)
diff --git a/erpnext/education/doctype/assessment_result_tool/assessment_result_tool.js b/erpnext/education/doctype/assessment_result_tool/assessment_result_tool.js index 4823791..239b7e4 100644 --- a/erpnext/education/doctype/assessment_result_tool/assessment_result_tool.js +++ b/erpnext/education/doctype/assessment_result_tool/assessment_result_tool.js
@@ -31,15 +31,17 @@ "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); } }); }
diff --git a/erpnext/public/js/schools/assessment_result_tool.html b/erpnext/public/js/education/assessment_result_tool.html similarity index 100% rename from erpnext/public/js/schools/assessment_result_tool.html rename to erpnext/public/js/education/assessment_result_tool.html
diff --git a/erpnext/public/js/schools/student_button.html b/erpnext/public/js/education/student_button.html similarity index 100% rename from erpnext/public/js/schools/student_button.html rename to erpnext/public/js/education/student_button.html