Undefined index: caption

Created on 6 August 2020, over 4 years ago
Updated 22 February 2023, about 2 years ago

Problem/Motivation

Notice: Undefined index: caption in Drupal\tablefield\Plugin\Field\FieldFormatter\TablefieldFormatter->viewElements() (line 145 of /app/docroot/modules/contrib/tablefield/src/Plugin/Field/FieldFormatter/TablefieldFormatter.php)

Steps to reproduce

Happens when caption field is empty

Proposed resolution

Let's add a !empty check in docroot/modules/contrib/tablefield/src/Plugin/Field/FieldFormatter/TablefieldFormatter.php prior to unset($tabledata['caption']);

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇸United States EthanT Sarasota, Florida

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