From 3abff577616e20991f1ca995ef194ce8c36374a6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 1 Oct 2014 15:04:21 +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 e09c6d6dd9..1d5de8262a 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"); }