From b89c69ee60adb0ca1806d0919f4aa8d87e5a36c8 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Fri, 7 Jul 2017 20:29:31 +0530 Subject: [PATCH] [hotfix] uncaught read property split of undefinded (#3640) --- frappe/public/js/frappe/ui/filters/filters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/filters/filters.js b/frappe/public/js/frappe/ui/filters/filters.js index 55c07fc4ac..256acd278d 100644 --- a/frappe/public/js/frappe/ui/filters/filters.js +++ b/frappe/public/js/frappe/ui/filters/filters.js @@ -408,7 +408,9 @@ frappe.ui.Filter = Class.extend({ } } } else if(in_list(["in", "not in"], this.get_condition())) { - val = $.map(val.split(","), function(v) { return strip(v); }); + if(val) { + val = $.map(val.split(","), function(v) { return strip(v); }); + } } if(val === '%') { val = ""; }