Error in fullcalendar_view for Smart date range if Allowed number of values ​is ​1

Created on 22 February 2024, 9 months ago
Updated 17 May 2024, 6 months ago

D:10.2.2
Smart_date: 4.0.3
Fullcalendar_view: 5.1.13

Problem/Motivation

The fullcalendar_view calendar with field Smart date range does not display the correct order of events. Places them in the calendar in the wrong field. The event has the correct date but the wrong field. Some one-day events are extended to several days. It reports a lot of errors in the log.

Steps to reproduce

If in the field Smart date range in part Allowed number of values I put 1, I have errors in fullcalendar_view and lot of errors in the log.
If I put Unlimited or 2 there are no errors.

Warning: Undefined array key "end_value" in Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry() (row 125 in /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php)
#1 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(125): _drupal_error_handler()
#2 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(83): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry()
#3 /home/test/public_html/modules/contrib/fullcalendar_view/fullcalendar_view.theme.inc(39): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->process()
#4 [internal function]: template_preprocess_views_view_fullcalendar()
.....

Warning: Undefined array key "value" in Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry() (row 124 in /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php)
#0 /home/test/public_html/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(124): _drupal_error_handler()
#2 /home/test/public_html/modules/contrib/smart_date/src/Plugin/FullcalendarViewProcessor/SmartDateProcessor.php(83): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->updateEntry()
#3 /home/kc/public_html/modules/contrib/fullcalendar_view/fullcalendar_view.theme.inc(39): Drupal\smart_date\Plugin\FullcalendarViewProcessor\SmartDateProcessor->process()
#4 [internal function]: template_preprocess_views_view_fullcalendar()
.....

🐛 Bug report
Status

Fixed

Version

4.1

Component

Calendar integration

Created by

🇷🇸Serbia krug

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

Comments & Activities

Production build 0.71.5 2024