Translating Nested Paragraphs with Paragraph Group Module Deletes Source Entity's Paragraphs

Created on 21 October 2024, 5 months ago

Problem/Motivation

With the paragraph_group module enabled, when i try to translate a node with nested paragraphs, the source language node and the translation end up with an empty paragraph field.

Steps to reproduce

- have the paragraph_group module enabled
- Have a content type with the field "layout" from paragraph group module.
- This layout paragraph has the field_group_paragraphs where i can add "panel" paragraph reference
- "Panel" paragraph has a field "field_panel_paragraphs" that can reference multiple custom paragraphs.
- Now create content on this node with a paragraph with text for example.
- Translate this node with ai_translate
- See that the translation has no paragraph and the source language node has lost its paragraphs as well.

Proposed resolution

Improve the "setValue()" method in "web/modules/contrib/ai/modules/ai_translate/src/Plugin/FieldTextExtractor/ReferenceFieldExtractor.php" To handle correctly nested paragraphs.z

🐛 Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇧🇪Belgium arwillame Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024