Skip to content

Commit

Permalink
Fixed #14753
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 4, 2024
1 parent 0101d59 commit 0c1049c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 4

## Unreleased

- Fixed a bug where `craft\helpers\ElementHelper::siteStatusesForElement()` wasn’t working for soft-deleted elements. ([#14753](https://github.com/craftcms/cms/issues/14753))

## 4.8.7 - 2024-04-03

- The Craft 5 Upgrade utility now shows the upgrade status and latest compatible version for abandoned plugins.
Expand Down
1 change: 1 addition & 0 deletions src/helpers/ElementHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ public static function siteStatusesForElement(ElementInterface $element, bool $e
->id($element->id)
->siteId($propagatedSiteIds)
->status(null)
->trashed(null)
->asArray()
->select(['elements_sites.siteId', 'elements_sites.enabled']);

Expand Down

0 comments on commit 0c1049c

Please sign in to comment.