mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2539 from silverstripe-terraformers/bugfix/published-pages-filter
BUG: Published pages filter correction (missing default filter)
This commit is contained in:
commit
6257156999
@ -41,10 +41,14 @@ class CMSSiteTreeFilter_PublishedPages extends CMSSiteTreeFilter
|
||||
*/
|
||||
public function getFilteredPages()
|
||||
{
|
||||
return Versioned::get_including_deleted(SiteTree::class)
|
||||
$pages = Versioned::get_including_deleted(SiteTree::class)
|
||||
->innerJoin(
|
||||
'SiteTree_Live',
|
||||
'"SiteTree_Versions"."RecordID" = "SiteTree_Live"."ID"'
|
||||
);
|
||||
|
||||
$pages = $this->applyDefaultFilters($pages);
|
||||
|
||||
return $pages;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user