Closed JannikZed closed 5 months ago
Hey team, We have an issue with the duplicate button.
{ "data": null, "error": { "status": 400, "name": "BadRequestError", "message": "Entity could not be cloned as it has unique and/or relational fields. Please edit those fields manually and save to complete the cloning.", "details": { "prohibitedFields": [ [ [ "slug" ], "unique" ] ] } } }
hi
@denitsa9006 & @JannikZed
Can you check if this error also occurs when using the duplicate function from the list view? If so then its an issue with the underlying logic inside strapi, if it only happens from the duplicate button it would be helpful to have some code to reproduce it i could check.
I can confirm that this issue happens on both the list view and the edit functionality. We have reverted the bumped version of the plugin and this returned the functionality back to normal.
I am heavy user of strapi content manager but not a developer- would consult our team that works with strapi and we can perhaps give you more information about the error - just let me know what you need.
On Fri, 7 Jun 2024 at 13:58, Johannes Lauter @.***> wrote:
hi
@denitsa9006 https://github.com/denitsa9006 & @JannikZed https://github.com/JannikZed
Can you check if this error also occurs when using the duplicate function from the list view? If so then its an issue with the underlying logic inside strapi, if it only happens from the duplicate button it would be helpful to have some code to reproduce it i could check.
— Reply to this email directly, view it on GitHub https://github.com/lautr/strapi-plugin-duplicate-button/issues/24#issuecomment-2154599537, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIAZF5I4E2VMY24S3BOGH3DZGGG6NAVCNFSM6AAAAABI6FVQ4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGU4TSNJTG4 . You are receiving this because you were mentioned.Message ID: @.***>
Below PR is causing such issues. Reverting it solves the problem https://github.com/lautr/strapi-plugin-duplicate-button/pull/27
I reverted the PR for now, i created an issue to better align strapi internal copy logic.
I was just trying out the duplicate button, as I wanted to duplicate a whole page including several components and their content. I receive a long error in Strapi:
that is most likely related to components ? I don't know exactly what needs to be done to support cloning of content in dynamic zones, but I would love to see that being supported (and again wondering how this isn't a native strapi feature)