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

Created on 8 April 2024, 3 months ago
Updated 29 April 2024, about 2 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.69.0 2024