mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX RedirectorPage types shouldn't appear in "Pages with no content" side report in the CMS Pages tab
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101737 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0e2c39593f
commit
4469b0028a
@ -134,7 +134,7 @@ class SideReport_EmptyPages extends SS_Report {
|
|||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
function sourceRecords($params = null) {
|
function sourceRecords($params = null) {
|
||||||
return DataObject::get("SiteTree", "\"Content\" = '' OR \"Content\" IS NULL OR \"Content\" LIKE '<p></p>' OR \"Content\" LIKE '<p> </p>'", '"Title"');
|
return DataObject::get("SiteTree", "\"ClassName\" != 'RedirectorPage' AND (\"Content\" = '' OR \"Content\" IS NULL OR \"Content\" LIKE '<p></p>' OR \"Content\" LIKE '<p> </p>')", '"Title"');
|
||||||
}
|
}
|
||||||
function columns() {
|
function columns() {
|
||||||
return array(
|
return array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user