mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
No 'All categories' empty label for mail
This commit is contained in:
parent
2332c2a806
commit
56fcfbf992
@ -3633,7 +3633,7 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
|
|||||||
// Set select options
|
// Set select options
|
||||||
// Check in content for options-<name>
|
// Check in content for options-<name>
|
||||||
const mgr = this.nextmatch.getArrayMgr("content");
|
const mgr = this.nextmatch.getArrayMgr("content");
|
||||||
let options = false
|
let options = false;
|
||||||
// Sometimes legacy stuff puts it in here
|
// Sometimes legacy stuff puts it in here
|
||||||
options = mgr.getEntry('rows[sel_options][' + name + ']');
|
options = mgr.getEntry('rows[sel_options][' + name + ']');
|
||||||
|
|
||||||
@ -3660,7 +3660,9 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Legacy: Add in 'All' option for cat_id, if not provided.
|
// Legacy: Add in 'All' option for cat_id, if not provided.
|
||||||
if(name == 'cat_id' && (options == null || options != null && (typeof options[''] == 'undefined' && typeof options[0] != 'undefined' && options[0].value != '')))
|
if(name == 'cat_id' && (options == null || options != null && (typeof options[''] == 'undefined' && typeof options[0] != 'undefined' && options[0].value != ''))
|
||||||
|
// Not mail, since it needs to be different
|
||||||
|
&& !['mail'].includes(this.getInstanceManager().app))
|
||||||
{
|
{
|
||||||
widget_options.empty_label = this.egw().lang('All categories');
|
widget_options.empty_label = this.egw().lang('All categories');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user