Duplicated entity taking relations from original entity

System Information
  • Strapi Version: 4.1.12
  • Operating System: Ubuntu 20.04
  • Database: SQLite
  • Node Version: 16.13
  • NPM Version: 8.1.0
  • Yarn Version: 1.22.18

Hello Strapi-Community :grinning:,

when duplicating an entity with relations to another collection type, the original entity loses it’s relations as soon as the save-button is pressed.

Is there a way to prevent this behavior?

To illustrate the problem, I made the following GIF:

The workaround for the moment is to delete all relations one by one before pressing the save-button :arrow_left: but this can get quite cumbersome if you have one-to-many relations.

From my standpoint, it would be better to not copy over the relations while duplicating in general. Cause this can lead to much confusion if you don’t know that this is actually happening.

Greetings and thanks for taking the time to read my post, Mirko


I would like to know if it’s possible to keep the relationships, for example on our entries pages we have css relationships, but they disappear as we duplicate the entry. We need to have them to avoid adding them all when we duplicate a template

1 Like