Skip to content

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

@vnali

Description

@vnali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions