When a user clicks on Add new media (multiple value field) inside an entity reference field (Block) within a content, all existing medias disappeared and are replaced by the new one uploaded

Created on 28 April 2022, over 2 years ago
Updated 22 November 2023, 12 months ago

Step to reproduce:
Add an entity reference field of Custom Blocks in a content type.
Custom block contains a media field with unlimited values.

When a user click on Add new media (multiple value field) inside an entity reference field (Block) within a content, all existing medias disappeared and are replaced by the new one uploaded.

Expected behaviour: New uploaded media is added at the end in the Media preview.

Actual Behaviour: Existing media entity disappeared and are replaced by the new uploaded one.

This issue exists from Drupal 9.3.10 and still exist in 9.3.12.

Any help is much appreciated, Thanks.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
MediaΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡²πŸ‡ΊMauritius jasonfooting

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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