From 2fc9bef6e2571f8a656e1a5e2eb65ef766b6e42d Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 21:41:59 +0000 Subject: [PATCH] BUGFIX reset subsite filter to false (from r94886) --- code/Subsite.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/Subsite.php b/code/Subsite.php index 32f4b53..bee42d2 100644 --- a/code/Subsite.php +++ b/code/Subsite.php @@ -557,9 +557,10 @@ JS; } static function get_from_all_subsites($className, $filter = "", $sort = "", $join = "", $limit = "") { + $oldState = self::$disable_subsite_filter; self::$disable_subsite_filter = true; $result = DataObject::get($className, $filter, $sort, $join, $limit); - self::$disable_subsite_filter = false; + self::$disable_subsite_filter = $oldState; return $result; }