Warning: Undefined array key 0 in OfficeHoursItemList->addOfficeHours()

Created on 8 April 2024, 8 months ago
Updated 29 April 2024, 7 months ago

Problem/Motivation

When displaying a node with empty exceptiondays/seasonal days, the following message appears:

Warning: Undefined array key 0 in Drupal\office_hours\Plugin\Field\FieldType\OfficeHoursItemList->addOfficeHours() (line 229 of modules\contrib_jvo\office_hours\src\OfficeHoursFormatterTrait.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.17

Component

Code - formatter

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024