mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
BUGFIX Filtering out subclasses of Virtualpage in PagesDueForReviewReport (AIR-65)
This commit is contained in:
parent
0cdef3d88d
commit
b32da03dfc
@ -110,13 +110,16 @@ class PagesDueForReviewReport extends SS_Report {
|
|||||||
|
|
||||||
// Show virtual pages?
|
// Show virtual pages?
|
||||||
if(empty($params['ShowVirtualPages'])) {
|
if(empty($params['ShowVirtualPages'])) {
|
||||||
$wheres[] = '"SiteTree"."ClassName" != \'VirtualPage\' AND "SiteTree"."ClassName" != \'SubsitesVirtualPage\'';
|
$virtualPageClasses = ClassInfo::subclassesFor('VirtualPage');
|
||||||
|
$wheres[] = sprintf(
|
||||||
|
'"SiteTree"."ClassName" NOT IN (\'%s\')',
|
||||||
|
implode("','", array_values($virtualPageClasses))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use different dropdown depending on the subsite
|
// We use different dropdown depending on the subsite
|
||||||
$ownerIdParam = 'OwnerID';
|
$ownerIdParam = 'OwnerID';
|
||||||
|
|
||||||
|
|
||||||
// Owner dropdown
|
// Owner dropdown
|
||||||
if(!empty($params[$ownerIdParam])) {
|
if(!empty($params[$ownerIdParam])) {
|
||||||
$ownerID = (int)$params[$ownerIdParam];
|
$ownerID = (int)$params[$ownerIdParam];
|
||||||
|
Loading…
Reference in New Issue
Block a user