Problem/Motivation

Items in the media library widget are showed in the wrong order, when going back to edit after previewing. This affects both new nodes, as well as already-existing nodes.

Steps to reproduce

  1. Drupal core 10.1.x-dev
  2. Standard profile + media + media_library
  3. Add field_media_images to Basic Page (media reference, unlimited values, allow referencing media/image)
  4. Create Basic Page, upload 2+ images and insert them
  5. In the media library widget, reorder the items
  6. Click on Preview, preview order is correct
  7. Click on "Back to content editing"
  8. Observe that the items in the media library widget are now showed in a different order than what was submitted for preview

Proposed resolution

TBD

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 d.o - 3346981-2 - repro.mp4986.38 KBjedihe

Comments

jedihe created an issue. See original summary.

jedihe’s picture

StatusFileSize
new986.38 KB

Attaching repro video, duration 1:37.

jedihe’s picture

Issue summary: View changes

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.