Using the Media Library submodule makes the custom field with Media Reference widget unusable when multiple rows can be added to the custom field.

Created on 7 October 2024, about 2 months ago

When using the new Media Library widget introduced in ✨ Media Library widget Fixed .
It allows a user to add media entities via a media library widget.

Problem/Motivation

Using the Media Library submodule makes the custom field with Media Reference widget unusable when multiple rows can be added to the custom field.
All media items are replaced by the media item selected in the first row.
It's also not possible to remove the media from the items and replace them by the correct one.

Steps to reproduce

  1. When the extra module is enabled and a media field is added to a custom field. Custom field needs the possibility to add multiple items so 2 or more.
  2. Going to de entity with the custom field and tries to add media.
  3. First item everything works fine.
  4. Press "add item"
  5. New item appears, but the media item is already pre filled with the same media item as the first one.

Other scenario:

  1. When there is already a custom field with multiple rows with a media item.
  2. When pressing "add item"
  3. All media items are replaced by the media item selected in the first row.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Martijn de Wit πŸ‡³πŸ‡± The Netherlands

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