silverstripe-reports/code/controllers
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
..
AssetAdmin.php Merge pull request #994 from tractorcow/pulls/3.1-asset-datefilter 2014-04-28 23:40:17 +12:00
CMSFileAddController.php FIX fileexists check via ajax didnt know what folder the file was being uploaded to. Fixes #950 2014-02-20 15:17:04 +11:00
CMSMain.php API Ability to configure paging for assets / pages 2014-04-28 15:22:17 +12:00
CMSPageAddController.php Implement History.js logic for "Cancel" action 2013-11-22 12:46:03 +01:00
CMSPageEditController.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:21:04 +01:00
CMSPageHistoryController.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
CMSPagesController.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:21:04 +01:00
CMSPageSettingsController.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:21:04 +01:00
CMSSettingsController.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
CMSSiteTreeFilter.php Bug: CMS tree filters doesn't count the correct number of children for deleted pages 2014-07-25 16:18:54 +12:00
ContentController.php FIX ensure controller stack is updated when execution halted by an exception. 2014-07-01 14:18:53 +12:00
ErrorPageControllerExtension.php API Error page support for Security controller errors 2014-05-05 17:13:11 +12:00
LeftAndMainPageIconsExtension.php Move CMSMain->generatePageIconsCss() into a LeftAndMain extension (fixes #798) 2013-07-31 09:30:58 +01:00
ModelAsController.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
NestedController.php Code cleanup: removed trailing ?> markers per code standard. 2012-02-13 12:48:41 -08:00
OldPageRedirector.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
ReportAdmin.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
RootURLController.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00
SilverStripeNavigator.php Numerous PHPDoc fixes. 2014-02-10 15:35:13 -05:00