mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Adapt detection for missing 'All' category option to array of options style
This commit is contained in:
parent
df515ab7e8
commit
db74398622
@ -2394,10 +2394,9 @@ 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' && options != null && typeof options[''] == 'undefined' && typeof options[0] == 'undefined')
|
||||
if(name == 'cat_id' && options != null && (typeof options[''] == 'undefined' || options[0].value != ''))
|
||||
{
|
||||
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.');
|
||||
}
|
||||
|
||||
// Create widget
|
||||
|
Loading…
Reference in New Issue
Block a user