Thumbnails missing for media items after enabling on-site asset storage

Created on 4 January 2025, 3 months ago

Problem/Motivation

When our field-replacer assistant logic runs, the on-site stored asset file reference field is yet empty for the media items of the given type, therefore showing only this field alone would lead to empty spaces appearing.

Steps to reproduce

  1. Select any DAM-related media type and confirm that its on-site asset file storage is disabled.
  2. Review both the Default and Media Library view display modes for this media type, ensuring that the Asset reference field is the only one displayed. (This reflects the out-of-the-box default layout.)
  3. Navigate to another content type (e.g., node) containing an entity reference field pointing to a media item of the selected media type. Confirm that the widget on the node edit page displays a thumbnail for the media item.
  4. Open the media library modal window from this widget and verify that thumbnails for the DAM assets of the selected media type are displayed.
  5. Enable on-site asset file storage for the selected media type, and after saving the configuration, confirm that the green status message includes the second sentence starting with β€œAnd also all its...” (This confirms our field-replacer logic is applied.)
  6. Return to or reload the same content edit page:
    • Expected behavior: The form widget should continue to display the thumbnail image for the referenced media item.
    • Observed behavior: No thumbnail is displayed; instead, only the filename appears as a link along with the file size.
  7. Reopen the media library modal window from this entity reference field:
    • Expected behavior: Thumbnails for the DAM assets of the selected media type should still be displayed.
    • Observed behavior: Thumbnails for the DAM assets are no longer displayed.

Proposed resolution

Exclude only one media_library view display mode from the automated update.

πŸ› Bug report
Status

Active

Version

1.1

Component

User interface

Created by

πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

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