- 🇩🇪Germany Anybody Porta Westfalica
@KevinVanRansbeeck thank you, could you please reroll this as MR against 2.x?
Furthermore it would be super important to have tests.
- Status changed to Needs work
almost 2 years ago 2:40pm 2 March 2023
When the same field is re-used in different entity bundles, the "loadReferencingEntitiesOfType" method returns duplicate entries (list is added for each entity bundle the field is re-used in.
The method is already looping over the bundles but not filtering on it. Solution is to add the $bundle_name as a key in the loop, and filter the entity query on type.
Needs work
2.0
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
@KevinVanRansbeeck thank you, could you please reroll this as MR against 2.x?
Furthermore it would be super important to have tests.