lautr / strapi-plugin-duplicate-button

19 stars 8 forks source link

Duplicate on collection item with i18n links original item's localized versions to the new item. #29

Open antoine-bielawski opened 4 months ago

antoine-bielawski commented 4 months ago

Strapi v4.24.2

I'm encountering a bug after duplicating my items in localized collections.

Essentially, the localized versions of the new item (the one resulting from the duplication) are the same as the localized versions from the original page (same meaning same ID, so deleting the localized version on the new page will also delete the version on the old page).

The current bugged behavior:

The expected behavior would be to duplicate all localized version and not just the base one, resulting in Page 4 (EN) having localized versions Page 5 (FR) and Page 6 (DE).

This can be very confusing and lead to overwriting valuable content without noticing.

lautr commented 2 months ago

Hi @antoine-bielawski,

the button just exposes Strapis internal copy logic, can you say if the same issue occurs when you use the "native" copy function from the List view?

smiley-cz commented 2 months ago

Strapi v4.25.9

Hi. I just run into this. And yes - the internal Strapi duplicate functionality does the same weird thing.

There is an Issue for that already. :-/