Wrong Image is Added from Media Browser when re-filtering

Created on 24 June 2024, 5 months ago
Updated 16 August 2024, 3 months ago

Problem/Motivation

Adding a media Image file from Media Browser inserts a wrong image when default caching is enabled.

Steps to reproduce

1. Enable Media and Media library modules.
2. Create a new Media field or use an existing Media field
3. Add a Content containing this new media field.
4. Add Media and then insert a new image.
5. Unselect the new image from image list and then use any filter to media.
6. Select a different image and then Click Insert Selected.
7. Wrong image is insert. This issue is not happening when caching is disabled.

Proposed resolution

We should not cache previously selected image id or clear the id.

Possible workarounds

The issue only happens when using "Grid" view, it can be worked around by switching to "Table" view.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

šŸ› Bug report
Status

Active

Version

11.0 šŸ”„

Component
MediaĀ  ā†’

Last updated about 6 hours ago

Created by

šŸ‡ŗšŸ‡øUnited States JaswinderSingh

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

Comments & Activities

  • Issue created by @JaswinderSingh
  • There may be an existing issue for this, or a related issue which is the same bug.

  • šŸ‡³šŸ‡æNew Zealand quietone

    Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.

  • šŸ‡ŗšŸ‡¦Ukraine Taran2L Lviv

    There were reports of the similar behaviour on one of our projects as well, but I cannot reproduce it reliably

  • šŸ‡§šŸ‡¬Bulgaria pfrenssen Sofia

    I can replicate the issue using the steps in the issue summary. It only happens when showing the media in a grid, it doesn't happen when displaying media in table format.

  • šŸ‡®šŸ‡³India vinmayiswamy

    Hi, I attempted to reproduce the issue by following the steps outlined in the issue summary. I checked in both Grid and Table views but was unable to replicate the problem in either case. The image inserted was always the correct one.

    If there are any specific steps or additional details I might have missed, kindly please let me know, and Iā€™d be happy to investigate further.

    Thank you!

Production build 0.71.5 2024