New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicating resources does not populate relation inputs #15093
Comments
Indeed there is a regression here. The way it was working before was that : when clicking on the duplicate button it was only opening the edit view with the form pre-filled (including relations). As we don’t load all relations anymore in the front because of performance issues, we need to rethink the duplicate feature and the user’s path to achieve a full duplicate. |
@petersg83 i've wondered this for a while actually, how come we clone browser side? And not server-side? If we were to do it server-side, this would probably remove this issue? |
There are several reasons :
Side note :
|
We have discussed this issue today and will work on fixing this, but it will take a bit longer because the current way of cloning is broken with the refactoring of relations. We agreed that we need to explore how we will handle cloning in the future and keep you posted. |
I don't know if that's related, but when you |
Hello 👋🏼 We have discussed this issue recently because there is no easy solution to it at the moment. We have simply forgotten about this case when we started the refactoring work on relations. Right now the frontend doesn't know longer about the relations that might exist in the cloned entity (which is a necessary performance optimization). This means we would have address cloning differently and may have to move it to the backend (to be decided).
This is a different issue, @JulienHe. Relational fields are always localized and there is no way currently to inherit relations from a different locale, so this is by design. You can e.g. subscribe + upvote this feature request: https://feedback.strapi.io/feature-requests/p/keep-relations-when-switching-between-locales |
I'll go ahead and close this issue since it's more so a feature request as Gustav pointed out |
@derrickmehaffy I'd like to reopen this issue if you don't mind because the comments above mix two issues:
|
Can you update the title? |
Bug report
Required System information
Describe the bug
When duplicating a page, relation inputs aren't populated.
Steps to reproduce the behavior
See the recording below:
https://www.loom.com/share/816a4bb8b0db4d3a8c242c6ac5e07969
Expected behavior
Relations should be pulled through from the resource being duplicated.
Screenshots
https://www.loom.com/share/816a4bb8b0db4d3a8c242c6ac5e07969
Code snippets
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: