code has an always false evaluation therefore the closed_format will be never shown.

Created on 18 April 2025, about 21 hours ago

Problem/Motivation

Changes introduced in https://www.drupal.org/i/3512961 causing an always false evaluation; therefore the closed_format will be never shown.

Proposed resolution

Update \Drupal\office_hours\OfficeHoursItemListFormatter::formatTimeSlots() to filter out empty time slots in $info['formatted_slots'] to prevent an always false evaluation on line 556:

$info['formatted_slots'][] = $item->formatTimeSlot($settings);

Evaluation:
case empty($info['formatted_slots']) && empty($info['comments']):

🐛 Bug report
Status

Active

Version

1.27

Component

Code - formatter

Created by

🇳🇱Netherlands Rhezios

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