From b65e97c0878390f8459802a363b4e8439e2577cf Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 18 Jan 2022 13:06:39 -0700 Subject: [PATCH] Calendar: If we don't have a sidebox to check parent, just accept it Fixes missing events in group calendars on home --- calendar/js/et2_widget_event.js | 4 ++++ calendar/js/et2_widget_event.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 9d01bfbdc1..29b5b168a7 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -965,6 +965,10 @@ var et2_calendar_event = /** @class */ (function (_super) { [parent.options.owner] : parent.options.owner); owner_match = false; + if (!options) { + // Could not find the owner options. Probably on home, just let it go. + owner_match = true; + } var length_1 = parent_owner.length; for (var i = 0; i < length_1; i++) { // Handle groups & grouped resources like mailing lists, they won't match so diff --git a/calendar/js/et2_widget_event.ts b/calendar/js/et2_widget_event.ts index c9c2e3dea1..3243f75741 100644 --- a/calendar/js/et2_widget_event.ts +++ b/calendar/js/et2_widget_event.ts @@ -1233,6 +1233,11 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached [parent.options.owner] : parent.options.owner); owner_match = false; + if(!options) + { + // Could not find the owner options. Probably on home, just let it go. + owner_match = true; + } const length = parent_owner.length; for(var i = 0; i < length; i++ ) {