silverstripe-reports/code/model
Stig Lindqvist 45046f08e8 Bug: CMS tree filters doesn't count the correct number of children for deleted pages
This is a bug that combines Hierarchy, Versioned and LeftAndMain admins and CMSSiteTreeFilters.

This bug can be reproduced by having a large site tree with enough deleted pages in it so it doesn't
pre load all the children pages when initially opening an admin. Filter by either 'All pages including deleted'
or 'Deleted pages'. For CMS users it will look like deleted pages are gone.

The solution involves a couple of smaller fixes in both CMS and framework modules.

1) Ensure that 'numHistoricalChildren' are used instead of 'numChildren' when dealing with deleted pages
2) LeftAndMain::currentPage() deletes all the 'marking' cache previously built up by Hierarchy::markPartialTree()
3) Use Versioned::get_included_deleted() instead of raw DB queries against the DataObject tables when calculating parents in CMSSiteTreeFilter
2014-07-25 16:18:54 +12:00
..
CurrentPageIdentifier.php Method visibility according to coding conventions 2012-09-20 10:41:50 +02:00
ErrorPage.php API Update ErrorPage to respect new HTTP Error codes 2014-05-06 15:29:33 +12:00
RedirectorPage.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:21:04 +01:00
SiteConfig.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
SiteTree.php Bug: CMS tree filters doesn't count the correct number of children for deleted pages 2014-07-25 16:18:54 +12:00
SiteTreeExtension.php API Added SiteTreeExtension::updateRelativeLink 2013-05-10 12:22:22 +12:00
SiteTreeFileExtension.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
SiteTreeFolderExtension.php BUG: Replaced extendedSQL with DataList as per ticket 8183 2013-01-24 08:45:30 +13:00
SiteTreeLinkTracking.php FIX: Broken file link tracking (fixes #996) 2014-04-28 09:26:34 +01:00
VirtualPage.php Bug: CMS tree filters doesn't count the correct number of children for deleted pages 2014-07-25 16:18:54 +12:00