diff --git a/calendar/src/Plugin/views/row/Calendar.php b/calendar/src/Plugin/views/row/Calendar.php index af6a8df..a684a1b 100644 --- a/calendar/src/Plugin/views/row/Calendar.php +++ b/calendar/src/Plugin/views/row/Calendar.php @@ -412,16 +412,7 @@ class Calendar extends RowPluginBase { return []; } - // Unrelated to end date: this addresses issue where an entity on a calendar - // is duplicated if it has multiple entity references; ensure that the - // calendar entity is only displayed once. - static $used = ''; - if ($id != $used) { - $used = $id; - } - else { - return []; - } + // There could be more than one date field in a view so iterate through all // of them to find the right values for this view result.