mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Avoid error if filter has no options.
This commit is contained in:
parent
e1619d6cb9
commit
3abff57761
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user