Infinite loop when first available formatter extends FieldWrapperBase

Created on 16 January 2023, almost 2 years ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

In some mysterious cases \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldWrapperBase::settingsForm() can enter an infinite loop. It happens when the first element of $formatter_options implements \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldWrapperBase too.

Proposed resolution

Instead of using the first available formatter, use the default one for the selected field type (which is unlikely to be one of ours).

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇫🇷France duaelfr Montpellier, France

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024