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