From 3843109dff7c514c28f5ec9ac4aaadab466ffa9b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 30 Sep 2014 14:47:54 +0000 Subject: [PATCH] Avoid error if filter has no 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 0de47fea37..b22bee2446 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -2718,7 +2718,7 @@ var et2_nextmatch_filterheader = et2_selectbox.extend([et2_INextmatchHeader, et2 */ createInputWidget: function() { // Make sure there's an option for all - if(!this.options.empty_label && !this.options.select_options[""]) + if(!this.options.empty_label && (!this.options.select_options || !this.options.select_options[""])) { this.options.empty_label = this.options.label ? this.options.label : egw.lang("All"); }