Avoid error if filter has no options.

This commit is contained in:
Nathan Gray 2014-09-30 14:47:54 +00:00
parent 3e12e8f2f9
commit 3843109dff

View File

@ -2718,7 +2718,7 @@ var et2_nextmatch_filterheader = et2_selectbox.extend([et2_INextmatchHeader, et2
*/ */
createInputWidget: function() { createInputWidget: function() {
// Make sure there's an option for all // 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"); this.options.empty_label = this.options.label ? this.options.label : egw.lang("All");
} }