From 77aaa70734a2027ae6080520fb74a39806f7180c Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Tue, 20 Sep 2016 17:54:07 +0530 Subject: [PATCH] [Fix] filters_by_name changed to query_report_filters_by_name --- .../monthly_attendance_sheet/monthly_attendance_sheet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js b/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js index 4feb417ccf..b1678db6ab 100644 --- a/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js +++ b/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js @@ -34,11 +34,11 @@ frappe.query_reports["Monthly Attendance Sheet"] = { } ], - "onload": function(me) { + "onload": function() { return frappe.call({ method: "erpnext.hr.report.monthly_attendance_sheet.monthly_attendance_sheet.get_attendance_years", callback: function(r) { - var year_filter = me.filters_by_name.year; + var year_filter = frappe.query_report_filters_by_name.year; year_filter.df.options = r.message; year_filter.df.default = r.message.split("\n")[0]; year_filter.refresh();