Remove buffer from OfficeHoursItemList::getFieldDefinition();

Created on 17 November 2023, about 1 year 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.71.5 2024