mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
-Fix broken filter when search results have option groups
- Fix JS error if option has no label yet
This commit is contained in:
parent
c2623dcb55
commit
4d1e81b8b1
@ -80,7 +80,7 @@ export class CalendarOwner extends Et2StaticSelectMixin(Et2Select)
|
||||
.option=${option}
|
||||
.selected=${this.getValueAsArray().some(v => v == value)}
|
||||
?disabled=${option.disabled}
|
||||
.getTextLabel=${() => {return option.label}}
|
||||
.getTextLabel=${() => {return option.label ?? option.value}}
|
||||
>
|
||||
${this._iconTemplate(option)}
|
||||
${this.noLang ? option.label : this.egw().lang(option.label)}
|
||||
@ -109,7 +109,7 @@ export class CalendarOwner extends Et2StaticSelectMixin(Et2Select)
|
||||
{
|
||||
if(Array.isArray(option.value))
|
||||
{
|
||||
return option.find(find);
|
||||
return option.value.find(find);
|
||||
}
|
||||
return option.value == this.value[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user