Warning: Undefined array key "all_day_format" in Drupal\office_hours\Plugin\Field\FieldType\OfficeHoursItemList->formatTimeSlots()

Created on 9 July 2024, 5 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

My site is giving the following error: Warning: Undefined array key "all_day_format" in Drupal\office_hours\Plugin\Field\FieldType\OfficeHoursItemList->formatTimeSlots() (line 511 of /modules/contrib/office_hours/src/OfficeHoursFormatterTrait.php)

Steps to reproduce

Go to a node that does not have all_day_format but does have the office hours enabled. Then you will see the following notice in the log when visiting the node.

Proposed resolution

Apply patch / merge the following code.

Remaining tasks

Make a merge request.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Postponed: needs info

Version

1.19

Component

Code

Created by

🇳🇱Netherlands Remco Hoeneveld

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024