Calendar: fix 'owner too' filter did not show when displaying a group and the event was owned by a group member who was not participating

This commit is contained in:
nathangray 2020-04-23 14:15:08 -06:00
parent ce91befdca
commit 389f79cc4c

View File

@ -898,7 +898,7 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
{
return element.id == owner && element.resources;
}) || {};
let matching_participant = resource?.resources.filter(id => typeof event.participants[id] != "undefined");
let matching_participant = resource.resources.filter(id => typeof event.participants[id] != "undefined");
if(matching_participant.length > 0)
{
return this._status_check(event, filter, matching_participant);