Skip to content

Commit

Permalink
Fix multi-site singles not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 3, 2023
1 parent e119d58 commit 97fe5cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/SinglesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ private function _getSingleEntries($singleSections): array
{
$singles = [];

$singleEntries = Entry::find()->sectionId(ArrayHelper::getColumn($singleSections, 'id'))->status(null)->all();
$singleEntries = Entry::find()
->sectionId(ArrayHelper::getColumn($singleSections, 'id'))
->siteId('*')
->status(null)
->all();

foreach ($singleEntries as $singleEntry) {
$singles[$singleEntry->sectionId . ':' . $singleEntry->siteId] = $singleEntry;
Expand Down

0 comments on commit 97fe5cf

Please sign in to comment.