Field 'title' captions don't work

Created on 19 December 2016, about 8 years ago
Updated 16 May 2024, 7 months ago

When I enable captions to be the 'title' field in my field formatter settings, captions don't display. I worked out that this is because in the following code it's checking if the caption setting is an integer, whereas it's stored as a string.

if ($display['settings']['caption'] === 1) {

Changing it as follows makes captions work properly:

if ($display['settings']['caption'] === '1') {

🐛 Bug report
Status

Fixed

Version

2.0

Component

Fields Integration

Created by

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.

No activities found.

Production build 0.71.5 2024