Promote / Unlink from library doesn't duplicate translatable parargaphs correctly

Created on 6 April 2023, about 2 years ago

Steps to reproduce:
1. Create translatable paragraph (with reference field to other paragraphs) via node form.
2. Translated field in sub-paragraph for other language.
3. Promoted that to library from first node.
4. Re-used that paragraph in other node.
5. Unlink from library on second node.

After steps 2 and 4 paragraph was duplicated only for default language, other language contains reference to original paragaph from point 2.
That cause issues if first node is unpublished, but second is published, on translated variant paragraph not displayed for anonymous.
And when we edit that paragraph, it also applied on second node, where we unlink that from library.

Solution:
If paragraph has other translations, duplicate its sub-paragraphs too during Promote/Unlink from library.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇷🇺Russia kiseleva.t

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

Comments & Activities

Production build 0.71.5 2024