From e7f864a4dd9697ad8690a131f0e4725eb2669618 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 20 Jul 2018 16:31:01 +0530 Subject: [PATCH] Return early if filters not initialized --- erpnext/accounts/report/general_ledger/general_ledger.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/report/general_ledger/general_ledger.js b/erpnext/accounts/report/general_ledger/general_ledger.js index 0663228b56..5ba0bde773 100644 --- a/erpnext/accounts/report/general_ledger/general_ledger.js +++ b/erpnext/accounts/report/general_ledger/general_ledger.js @@ -80,6 +80,7 @@ frappe.query_reports["General Ledger"] = { "label": __("Party"), "fieldtype": "MultiSelect", get_data: function() { + if (!frappe.query_report.filters) return; var party_type = frappe.query_report.get_filter_value('party_type'); var parties = frappe.query_report.get_filter_value('party'); if(!party_type) return;