mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Calendar: More sidebox owner fixes
- another instance of remote class causing problems - remove duplicates to avoid warning message
This commit is contained in:
parent
84dd9284e2
commit
8e9071acc8
@ -259,15 +259,15 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
|
||||
option.value = option.id;
|
||||
delete option.id;
|
||||
}
|
||||
if (typeof option.value === 'number')
|
||||
if(typeof option.value === 'number')
|
||||
{
|
||||
option.value = option.value.toString();
|
||||
}
|
||||
if (typeof option.label !== 'string')
|
||||
if(typeof option.label !== 'string')
|
||||
{
|
||||
fixed_options.push(...cleanSelectOptions(option.label));
|
||||
}
|
||||
else
|
||||
else if(fixed_options.findIndex(o => o.value == option.value) == -1)
|
||||
{
|
||||
fixed_options.push(option);
|
||||
}
|
||||
|
@ -542,6 +542,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
if(options.findIndex(o => o.value == remote.value) != -1)
|
||||
{
|
||||
this._selected_remote.splice(remote_index, 1);
|
||||
this.querySelector('[value="' + remote.value + '"]')?.classList.remove("remote");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3779,7 +3779,7 @@ export class CalendarApp extends EgwApp
|
||||
|
||||
for(const id of Object.keys(event.participants))
|
||||
{
|
||||
if(parseInt(id) >= 0)
|
||||
if(parseInt(id) >= 0 || isNaN(parseInt(id)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user