From f7589316e0545866888e87780eb6589ab1b38c3f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 11 Aug 2014 20:27:56 +0000 Subject: [PATCH] Make sure options are there before looking inside, avoids a potential error in filter options --- etemplate/js/et2_extension_nextmatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index b66028f211..c36a35be33 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -2080,7 +2080,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader, } // Legacy: Add in 'All' option for cat_id, if not provided. - if(name == 'cat_id' && typeof options[''] == 'undefined' && typeof options[0] == 'undefined') + if(name == 'cat_id' && options != null && typeof options[''] == 'undefined' && typeof options[0] == 'undefined') { widget_options.empty_label = this.egw().lang('All'); this.egw().debug('warn', 'Nextmatch category filter had no "All" option. Added, but you should fix that.');