After updating from Blazy 2.16 to 2.17, captions are missing

Created on 21 September 2023, about 1 year ago
Updated 25 September 2023, about 1 year ago

Problem/Motivation

With Blazy 2.16, BlazyEntityReferenceBase::getCaption() would get field values from the wrapper entity (e.g. a paragraph), but with Blazy 2.17, BlazyEntityReferenceBase::getCaptions() uses the media entity (because the $this->blazyOembed->build($data); call overwrites $data['#entity']>). This breaks existing sites that used caption values from paragraphs.

Steps to reproduce

Blazy 2.17 + Slick 2.10 + Slick Paragraphs 2.3

Proposed resolution

Check both the media entity as well as the wrapper entity.

Remaining tasks

Review patch.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Fixed

Version

2.0

Component

Regression

Created by

🇺🇸United States smokris Athens, Ohio, USA

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

Comments & Activities

Production build 0.71.5 2024