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

[5.x]: siteStatusesForElement does not return site status for a trashed and enabled element #14753

Closed
vnali opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@vnali
Copy link
Contributor

vnali commented Apr 4, 2024

What happened?

Description

Hi.
I noticed that ElementHelper::siteStatusesForElement returns false for a site when an element is disabled and element is trashed.
but if an element is trashed and its status is enabled for a site, siteStatusesForElement returns nothing for that site,
so I guess this is a bug.
Thanks!

Craft CMS version

5.0.0, 4.8.6

PHP version

8.2

Operating system and version

No response

Database type and version

MariaDB 10.6.7

Image driver and version

No response

Installed plugins and versions

@vnali vnali added the bug label Apr 4, 2024
@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed in 5.0.2.

@brandonkelly
Copy link
Member

4.8.8 is also out with a fix for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants