You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving entries between sections, the source section must be enabled for the same sites as the target section. While it’s understandable that the target section needs to be enabled for the site that the entry originates from, it feels restrictive that the source section must be enabled for other sites as well.
This issue came up after an upgrade to Craft 5. We had different sections per site with identical entry types. I merged the entry types after the upgrade, and then decided to also merge the sections (pagesSiteA and pagesSiteB) into a unified pages section, setting the propagation method to Let each entry choose which sites it should be saved to.
When trying to move their entries to the new unified pages section, an error was thrown. I found it hard to identify the cause, until I also enabled the source section for the other sites, which solved the issue.
Steps to reproduce
Add two sites: siteA and siteB
Add section sectionForSiteA, enabled for siteA only, add an entry type
Add section sectionForBothSites, enabled for siteA and siteB, add the same entry type
Select sectionForSiteA inside siteA and add entry of common entry type
Try to move the entry from sectionForSiteA to sectionForBothSites
Expected behavior
Entry is moved to sectionForBothSites, as a) its entry type is compatible with the target section and b) the target section is available for the current site
Actual behavior
Entry cannot be moved. Error Cannot find the entries to move to the new section. is logged. When logging $entries inside EntriesController, it is an empty array:
Hi, thanks for getting in touch! I’m not able to replicate that. Any chance you could send your composer.json, composer.lock and database export to [email protected] and point out which entry you’re trying to move and to which section when you get this error?
What happened?
Description
When moving entries between sections, the source section must be enabled for the same sites as the target section. While it’s understandable that the target section needs to be enabled for the site that the entry originates from, it feels restrictive that the source section must be enabled for other sites as well.
This issue came up after an upgrade to Craft 5. We had different sections per site with identical entry types. I merged the entry types after the upgrade, and then decided to also merge the sections (
pagesSiteA
andpagesSiteB
) into a unifiedpages
section, setting the propagation method to Let each entry choose which sites it should be saved to.When trying to move their entries to the new unified pages section, an error was thrown. I found it hard to identify the cause, until I also enabled the source section for the other sites, which solved the issue.
Steps to reproduce
siteA
andsiteB
sectionForSiteA
, enabled forsiteA
only, add an entry typesectionForBothSites
, enabled forsiteA
andsiteB
, add the same entry typesectionForSiteA
insidesiteA
and add entry of common entry typesectionForSiteA
tosectionForBothSites
Expected behavior
Entry is moved to
sectionForBothSites
, as a) its entry type is compatible with the target section and b) the target section is available for the current siteActual behavior
Entry cannot be moved. Error
Cannot find the entries to move to the new section.
is logged. When logging$entries
insideEntriesController
, it is an empty array:cms/src/controllers/EntriesController.php
Lines 451 to 472 in 0dccb7d
Craft CMS version
5.5.9
PHP version
8.3.12
Operating system and version
Darwin 24.1.0
Database type and version
MySQL 8.0.27
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.1-38)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: