commit | 452619c668e39bd5ffcdba5f2dbbbc5d9eaa4bf8 | [log] [tgz] |
---|---|---|
author | Shreya Shah <shreyashah115@gmail.com> | Tue Oct 30 11:26:01 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Oct 30 11:26:01 2018 +0530 |
tree | 85a5eb55fd2ea6d3977fd2d1050ac41a7f8b13d8 | |
parent | 9d0dba55695bcbc33dfac2a5b4e96a26285acb3c [diff] |
fix(report): Return if not list (#15849)
diff --git a/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py b/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py index 0c7baa8..3f1d5b3 100644 --- a/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py +++ b/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py
@@ -73,6 +73,7 @@ return att_map def get_students_with_leave_application(from_date, to_date, students_list): + if not students_list: return leave_applications = frappe.db.sql(""" select student, from_date, to_date from `tabStudent Leave Application`