- Status changed to Needs review
4 months ago 9:01pm 14 July 2024 - πΊπΈUnited States cbfannin
I did a clean install on simplytest.me with 8.x-2.6 and not seeing this issue.
My test steps were:
- Installed 8.x-2.6 (unpatched)
- Created a new Entity Browser adding the upload widget.
- Added an entity reference field to the page node type.
- Set the entity reference field's form display to Entity Browser.
- Created a new node.
- Selected an image with the new field.
- Saved the node.
- Edited the node.
- Clicked the "Removed" button.
Result: The image was removed with no reported errors.Again this was a clean install with no patches.
If anyone wants to provide their test steps, I am more than happy to test again. - π¬π§United Kingdom grahamC Oxford, UK
We're seeing the same issue. It doesn't actually cause a problem unless PHP has the
display_errors
option switched on.Here the problem is caused by having both an Entity Browser field and a core Media Library field on the same form. When trying to remove an item from the media widget, the Entity Browser code is getting confused because the button for core Media Library is also called
remove_button
Attaching patch which checks the field name on the triggering element matches the expected one for this widget. This allows both the media library and entity browser to function correctly again here.