mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX reset subsite filter to false (from r94886)
This commit is contained in:
parent
9e17ce98aa
commit
2fc9bef6e2
@ -557,9 +557,10 @@ JS;
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function get_from_all_subsites($className, $filter = "", $sort = "", $join = "", $limit = "") {
|
static function get_from_all_subsites($className, $filter = "", $sort = "", $join = "", $limit = "") {
|
||||||
|
$oldState = self::$disable_subsite_filter;
|
||||||
self::$disable_subsite_filter = true;
|
self::$disable_subsite_filter = true;
|
||||||
$result = DataObject::get($className, $filter, $sort, $join, $limit);
|
$result = DataObject::get($className, $filter, $sort, $join, $limit);
|
||||||
self::$disable_subsite_filter = false;
|
self::$disable_subsite_filter = $oldState;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user