- Issue created by @asherry
- Status changed to RTBC
over 1 year ago 11:20pm 16 May 2023 - last update
over 1 year ago Custom Commands Failed - 🇺🇸United States droath
This fixed an issue I was having in layout paragraphs where the same media entity was getting added into multiple fields that had the same machine name.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - Status changed to Needs work
over 1 year ago 4:08pm 11 June 2023 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇦🇹Austria hudri Austria
A media library
field_image
on both, a node and a paragraph, seems a quite natural and common use-case to me. Bumping to major. - First commit to issue fork.
- last update
over 1 year ago 30,325 pass, 8 fail - @rpayanm opened merge request.
- First commit to issue fork.
- 🇺🇸United States jnettik Denver, CO
I can also confirm the patches here fix the issue. It also doesn't feel trivial to me as well.
- First commit to issue fork.
- Merge request !7039Generate the Media library field_widget_id as more 'unique' → (Open) created by Unnamed author
- Status changed to Needs review
8 months ago 9:46am 14 March 2024 - Merge request !7040Set unique fallback suffix id for field_widget_id → (Open) created by Unnamed author
- Status changed to Needs work
8 months ago 2:00pm 14 March 2024 - 🇺🇸United States smustgrave
Thanks, as a bug will need a test case or simple assertion added.
- 🇩🇪Germany J-Lee 🇩🇪🇪🇺
However, it is theoretically possible for $this->fieldDefinition->getUniqueIdentifier() to return an empty string.
- 🇩🇪Germany J-Lee 🇩🇪🇪🇺
The tests use \Drupal\Core\Field\BaseFieldDefinition, which returns a non-unique identifier for the same field name.
Did someone have a suggestion for the best way to test this?
- 🇺🇸United States Tim Bozeman
Another edge casey type thing that these patches don't cover is a scenario when you have two identical media widgets on the same page. For example, you could have a custom block with a media field on it. If you place that same block type twice on a layout builder page and open both block edit forms at the same time (I know that's kinda an odd thing to do, but still) the
field_widget_id
would need to differentiate by block.