Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Entries in site-group sites disabled when importing to a specific site #1345

Conversation

ThomasDeMarez
Copy link
Contributor

Description

Using $element->getEnabledForSite($siteId); with the $site param always returns false.
On the Element in craftcms/cms https://github.com/craftcms/cms/blob/4.4.15/src/base/Element.php#L3339 the $this->_enabledForSite is never an array.

Switching this logic out for the Elements service fixes this issue.

Related issues

This fixes the reccuring issue in #1208

@angrybrad
Copy link
Member

Thanks! Closing in favor of #1381

@angrybrad angrybrad closed this Nov 25, 2023
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.

2 participants