Describe the bug
If a collection/single type has a dynamic zone, and a component inside that zone has a relation to another collection type/entity, this relation is reset when using "translate from another locale" inside the content manager and saving.
To Reproduce
Steps to reproduce the behavior:
In the content-type builder, Create a collection type called "Type A"
Create a component called "Block", with a field relation to "Type A"
Create another collection type called "Type B" with a dynamic zone, where you can add the "Block" component.
In settings, under internationalization, add a second locale if there isn't one
In the content manager, create an instance of "Type A", translate this instance to another locale.
Create an instance of Type B, add a "Block" component to its dynamic zone and set the relation to the instance of "Type A"
Open the new instance of Type B in the second locale, then press "Translate from another locale" and select the first locale.
Before saving, look at the component inside the dynamic zone, it should show a relation to the translated instance of "Type A".
Save, leave the translated instance and return, look at the component inside the dynamic zone again. The relation is gone.
Expected behavior
When pressing save after selecting "translate from another locale", relations in components in dynamic zones should not be lost.
Screenshots
N/A
System (please complete the following information):
OS: MacOS Ventura 13.4.1
Browser Chrome
Versions:
strapi: 4.12.7
strapi-plugin-translate: 1.2.2
provider: strapi-provider-translate-deepl@1.1.9
Other Strapi plugins:
@strapi/plugin-graphql@4.12.7
@strapi/plugin-i18n@4.12.7
@strapi/plugin-users-permissions@4.12.7
strapi-plugin-responsive-image@1.1.0
Plugin config
Please add your plugin config here, e.g.
Additional context
It looks as if the relation is still there after translating, but it isn't kept when saving. The problem only occurs when translating in the content manager, not when batch translating.
Describe the bug If a collection/single type has a dynamic zone, and a component inside that zone has a relation to another collection type/entity, this relation is reset when using "translate from another locale" inside the content manager and saving.
To Reproduce Steps to reproduce the behavior:
Expected behavior When pressing save after selecting "translate from another locale", relations in components in dynamic zones should not be lost.
Screenshots N/A
System (please complete the following information):
Plugin config Please add your plugin config here, e.g.
Additional context It looks as if the relation is still there after translating, but it isn't kept when saving. The problem only occurs when translating in the content manager, not when batch translating.