[5.x]: Copied entries are pasted to all activated sites, if section propagation method "Let each entry choose which sites it should be saved to"
What happened?
Description
Initial situation:
- Multisite setup with 7 independent sites
- Some of the sites also have language variants
- Section with propagation method "Let each entry choose which sites it should be saved to"
- The content of entries in this section is mostly only translatable into other languages
I have an entry that is published/activated on Site A, Site B, and Site C. When I copy this entry and paste it into Site D, it is not only pasted to Site D but also to Sites A, B, and C. As a result, the entry now exists twice on Sites A, B, and C.
The entry should be copied because the content for Site D needs to be similar but not identical, and editors should be able to adjust the entry for Site D without affecting Sites A, B, and C.
I would expect the copied entry to be pasted only into the site where I click the "Paste entry" button. In general, it cannot be correct that the entry is also added to Sites A, B, and C.
Craft CMS version
5.8.15
PHP version
8.3
Operating system and version
No response
Database type and version
MySQL 8.4
Image driver and version
No response
Installed plugins and versions
This is working as intended. Most multi-site elements must exist for each of their sites, so when pasting elements, Craft will set the target site’s content to the content from the source element for the site that was selected when the element was copied; and then it will fill in the other required sites’ content based on the source element’s corresponding site content.
We could possibly carve out an exception for entries in a section with “Let each entry choose which sites it should be saved to” – which is the only case where the propagated sites is customizable for an element – but authors would need to be given a choice for that, as it’s very likely the current behavior is what the author expects.
I agree with you that this is a specific problem with sections using "Let each entry choose which sites it should be saved to." However, an editor would not expect that when copying an entry from Site A to Site B, the entry would then appear twice on Site A after pasting. When an entry is copied, the expectation is that it should only exist on the site where it was pasted (in relation to sections using "Let each entry...").
I believe making an exception for sections with "Let each entry choose which sites it should be saved to" would be very reasonable.