Remove buffer from OfficeHoursItemList::getFieldDefinition();

Created on 17 November 2023, 7 months ago

Problem/Motivation

the function OfficeHoursItemList::getFieldDefinition() store the result from precious calls, in an effort to gain performance.
However, the buffer is not correct. For instance, it depends not on the field_name.

It gives errors when an entity has multiple office_hours fields, like here: πŸ› Multiple Office Hours fields on same Content Type breaks Exceptions Fixed

Steps to reproduce

Proposed resolution

Just remove the buffer.

πŸ› Bug report
Status

Fixed

Version

1.12

Component

Code - widget

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