silverstripe-framework/admin/code
Stig Lindqvist 333a2aa8f9 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:19:30 +12:00
..
AdminRootController.php Update docblocks 2013-10-15 11:29:58 +13:00
CMSBatchAction.php Update docblocks 2013-10-15 11:29:58 +13:00
CMSBatchActionHandler.php Update docblocks 2013-10-15 11:29:58 +13:00
CMSForm.php Merge pull request #2537 from wilr/membervalidator 2013-10-23 03:01:15 -07:00
CMSMenu.php Correct line length and indentation 2014-03-30 21:11:56 +13:00
CMSMenuItem.php API: Add attributes argument for CMSMenuItem. 2013-10-02 19:06:54 +13:00
CMSPreviewable.php Update docblocks 2013-10-15 11:29:58 +13:00
CMSProfileController.php admin/myprofile layout after validation (fixes #2644) 2013-11-07 16:19:40 +01:00
GroupImportForm.php Update docblocks 2013-10-15 11:29:58 +13:00
LeftAndMain.php BUG: CMS tree filters doesn't count the correct number of children for deleted pages 2014-07-25 16:19:30 +12:00
LeftAndMainExtension.php Update docblocks 2013-10-15 11:29:58 +13:00
MemberImportForm.php Update docblocks 2013-10-15 11:29:58 +13:00
ModelAdmin.php Merge remote-tracking branch 'origin/3.0' into 3.1 2013-08-07 17:14:47 +02:00
SecurityAdmin.php FIX: Use Injector API for managing Member_Validator instance. 2013-10-16 11:29:43 +13:00