Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When getting the Embeddable Fields, the module just does a check on the entity type, not considering that could be bundles that are marked as not to be translated, this made the final file getting embedded entities that should not be translated.
Steps to reproduce
Create two paragraph types one translatable and one that isn't. Create two fields referencing this paragraphs. Generate a new job. The exported file gets both field with the referenced entities.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3334331-module-is-not-validating-target-bundle.patch | 1.67 KB | ddiestra |
Comments
Comment #2
ddiestra CreditAttribution: ddiestra as a volunteer commentedComment #3
dishabhadra CreditAttribution: dishabhadra at Axelerant commentedWe are also facing the same issue in the project. I tried #2 patch and it is working fine for 1-to-1 mapping. Eg, Content type field is referenced with one paragraph type then it is working fine.
But let's say the Content-type field is referenced to paragraph type A.
Now Paragraph type A also has a referenced field that has multiple paragraph types B, C, and D.
Paragraph types C and D are not translatable still it will be part of the translation file.