Calendar: Fix calendars on Home did not load when sidebox was not loaded

This commit is contained in:
nathan 2023-04-04 13:15:59 -06:00
parent b146452754
commit 9eecc9218f

View File

@ -3760,13 +3760,13 @@ export class CalendarApp extends EgwApp
let groups = [];
let option_owner = null;
let options : SelectOption[];
if(app.calendar && app.calendar.sidebox_et2 && app.calendar.sidebox_et2.getWidgetById('owner'))
if(this.sidebox_et2 && this.sidebox_et2.getWidgetById('owner'))
{
option_owner = app.calendar.sidebox_et2.getWidgetById('owner');
option_owner = this.sidebox_et2.getWidgetById('owner');
}
else
{
option_owner = parent.getArrayMgr("sel_options").getRoot().getEntry('owner');
option_owner = this.et2.getArrayMgr("sel_options").getRoot().getEntry('owner') || {select_options: []};
}
options = option_owner.select_options;