addDateRecurEvent causes error if view results contain past events

Created on 31 January 2024, 11 months ago

Problem/Motivation

Past events with no recurring dates in the future cause the following error.

Error: Call to a member function getStart() on bool in Drupal\views_ical\Plugin\views\row\IcalFieldsWizard->addDateRecurEvent() (line 590 of modules/contrib/views_ical/src/Plugin/views/row/IcalFieldsWizard.php).

Steps to reproduce

Create a view with only a past event in it.

Proposed resolution

Add some checking to ignore things that would cause an error.

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇬🇧United Kingdom very_random_man

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024