Skip to content
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

[Admin UI - Content Manager - Duplicate Item] Relations not populated in the duplicated item after Strapi upgrade #15184

Closed
geeky-biz opened this issue Dec 15, 2022 · 2 comments

Comments

@geeky-biz
Copy link
Contributor

Required System information

Node.js version: 16.13.0
NPM/YARN version: NA/1.22.19
Strapi version: 4.5.2
Database: PostgreSQL 14.6
Operating system: macOS Ventura 13.0

Describe the bug
After upgrading from 4.2.0 to 4.5.2 - the following issue is observed:

  • From the Admin UI => content manager => any collection type
  • When we click the icon to 'Duplicate' an existing record
  • If this record has certain fields of type "relation" (oneToMany, manyToOne, manyToMany - any of these) - the duplicated item does not populate the values for these relation fields that the original record had.
  • When we try duplicating the exact same record for the same collection with Strapi 4.2.0 - it does populate the same relation fields in the duplicated item.
  • I suspect this change must have happened from 4.5.0 onwards when the way relation fields are displayed & loaded on the Admin UI has changed.

Expected Behavior

  • The duplicated record should also populate the values for relation fields like it used to earlier.

Additional Context
We heavily use the 'Duplicate' Admin UI feature and our content types contain multiple relation fields. With this bug - we cannot duplicate items.

@geeky-biz
Copy link
Contributor Author

When I stated the icon to duplicate an existing record - I meant clicking the icon shown in this screenshot on the Content Manager list view -

image

@joshuaellis
Copy link
Member

This is a duplicate of #15093, i would monitor that issue :)

@joshuaellis joshuaellis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants