Formatter doesn't account for translated media

Created on 12 November 2024, about 1 month ago

Problem/Motivation

The code in MicromodalFieldFormatter::viewElements() won't render a possible translation in case the media reference field is flagged as translatable.

Steps to reproduce

Enable content translation and media
On the article content type, create a media reference field marking it as translatable
Use the media_video_micromodal formatter for the media field
Create a media in EN and translate it to DE
Create an article in EN referencing the media created above
Translate the article into DE NOT manually changing the media reference (because the reference field will load the right translation)
View the article

Expected result: The modal opens the translated video media.
Actual result: The modal opens the EN version of the video

Proposed resoluti
on

Load a possible translation in the formatter.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024