Permalink
Browse files

BUGFIX Clear static marking caches on Hierarchy->flushCache() (from r…

…113277)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114530 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 38601b9 commit 770281b65cc9834434c5e8a7450c85f92b50f4a2 @sminnee sminnee committed Dec 5, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/model/Hierarchy.php
View
3 core/model/Hierarchy.php
@@ -674,6 +674,9 @@ public function naturalNext( $className = null, $root = 0, $afterNode = null ) {
function flushCache() {
$this->_cache_children = null;
$this->_cache_numChildren = null;
+ self::$marked = array();
+ self::$expanded = array();
+ self::$treeOpened = array();
}
function reset() {

0 comments on commit 770281b

Please sign in to comment.