Closed (fixed)
Project:
Custom Field
Version:
3.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2024 at 15:17 UTC
Updated:
11 Oct 2024 at 04:30 UTC
Jump to comment: Most recent
When using the new Media Library widget introduced in #3473148: Media Library widget.
It allows a user to add media entities via a media library widget.
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.
Other scenario:
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
apmsooner commentedThanks for notifying however I can't reproduce this issue for some reason. I'm on Drupal core 10.3.5 and tried to reproduce with simple setup of unlimited custom_field with the media library widget and am having no issues adding/removing items. Is there anything else you can provide about your setup that may help me identify the issue? What type of entity for instance is the field attached to?
Comment #3
apmsooner commentedAhh, it looks like a multi-valued custom_field within a multi-valued paragraphs field might be the issue I'm seeing. If that is what you are encountering also, that appears to be a valid bug that I will have to look into a solution for.
Comment #5
apmsooner commentedThe patch should fix this issue. Please confirm with RTBC.
Thanks!
Comment #6
apmsooner commentedComment #7
martijn de witTested the merge request / patch.
Everything seems to work fine now!
Thank you for the quick response!
Comment #9
apmsooner commentedComment #10
apmsooner commented