Closed DanielDarrenJones closed 2 months ago
I believe this is intentional. The Duplicator action will localize the duplicated entry into all sites the user has access to.
Obviously they won't be published in those other sites until you manually go in and publish them.
@duncanmcclean the issue here is that it makes the entries show in every site, which when you have a large number of entries can be confusing. Surely it would make more sense to match the exact setup of the page you are duplicating?
If this is happening, it's a bug.
It should only duplicate into the sites where the entry existed.
The test even states it: https://github.com/statamic/cms/blob/ce8e80987e29c8929364dc8387cd0f2399128202/tests/Actions/DuplicateEntryTest.php#L232
After digging further on this and trying to replicate in a fresh environment it looks like the propagate setting in the collection is what causes this - I'm not sure that the duplicate action should also propagate (I would think these should be separate things) but disabling this solved the issues for us.
I haven't tinkered with the propagation setting, but it sort of makes sense. When I duplicate an entry, my non-origin site gets 2 'duplications', one correct the other has a bad slug. But the origin thinks the extra duplicate is the right one for the origin until I delete it. I recorded a short video on its behavior.
Bug description
When duplicating an entry which is only enabled on certain sites drafts are created for every site, this makes the entry show when you change to the other sites in the collection when it shouldn't.
How to reproduce
On a multisite install:
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response