Skip to content

Commit

Permalink
BUGFIX RedirectorPage types shouldn't appear in "Pages with no conten…
Browse files Browse the repository at this point in the history
…t" 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
  • Loading branch information
Sean Harvey authored and Sam Minnee committed Feb 2, 2011
1 parent 0e2c395 commit 4469b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/SideReport.php
Expand Up @@ -134,7 +134,7 @@ function sort() {
return 100;
}
function sourceRecords($params = null) {
return DataObject::get("SiteTree", "\"Content\" = '' OR \"Content\" IS NULL OR \"Content\" LIKE '<p></p>' OR \"Content\" LIKE '<p>&nbsp;</p>'", '"Title"');
return DataObject::get("SiteTree", "\"ClassName\" != 'RedirectorPage' AND (\"Content\" = '' OR \"Content\" IS NULL OR \"Content\" LIKE '<p></p>' OR \"Content\" LIKE '<p>&nbsp;</p>')", '"Title"');
}
function columns() {
return array(
Expand Down

0 comments on commit 4469b00

Please sign in to comment.