Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Jan 23, 2026

Description

The first commit replaces the old element namespaces with new ones in the twig files.
With the old namespaces, the wrong element type was set in the ElementIndexesController::beforeAction(). This caused errors on e.g. entry index page. Trying to view entries in a section caused the “Move to section is only available for Entries” error, the “New entry” button was not loading when the “All entries” source was selected, etc.

The second commit fixes an issue where it was not possible to create a new entry or edit an existing one due to an Undefined property: stdClass::$siteId error.

The third commit fixes an issue where it was not possible to save a new nested entry due to CraftCms\Cms\Element\Element::getEnabledForSite(): Return value must be of type ?bool, string returned error.

Related issues

n/a

Copy link
Contributor

@riasvdv riasvdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah damnit, thought I got all of those, thanks!

@riasvdv riasvdv merged commit fcbdc14 into 6.x Jan 23, 2026
11 checks passed
@riasvdv riasvdv deleted the bugfix/legacy-element-namespace-and-bugs branch January 23, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants