From 770281b65cc9834434c5e8a7450c85f92b50f4a2 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 5 Dec 2010 08:26:40 +0000 Subject: [PATCH] BUGFIX Clear static marking caches on Hierarchy->flushCache() (from r113277) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114530 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Hierarchy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/model/Hierarchy.php b/core/model/Hierarchy.php index 4a143e365..b4a675c76 100755 --- a/core/model/Hierarchy.php +++ b/core/model/Hierarchy.php @@ -674,6 +674,9 @@ class Hierarchy extends DataObjectDecorator { function flushCache() { $this->_cache_children = null; $this->_cache_numChildren = null; + self::$marked = array(); + self::$expanded = array(); + self::$treeOpened = array(); } function reset() {