Warning: Undefined array key 0 in CalendarController->updateNodePublishDate()

Created on 31 July 2023, over 1 year ago

Problem/Motivation

If you drag a calendar item that isn't scheduled yet to another date, the following warning appears in the logs:

Warning: Trying to access array offset on value of type null in Drupal\content_calendar\Controller\CalendarController->updateNodePublishDate() (line 161 of [..]/web/modules/contrib/content_planner/modules/content_calendar/src/Controller/CalendarController.php)

This might have started happening after an update of Drupal core or the Scheduler module, but I'm not sure.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024