diff --git a/modules/backend/ServiceProvider.php b/modules/backend/ServiceProvider.php index 0651565d5..9451f075d 100644 --- a/modules/backend/ServiceProvider.php +++ b/modules/backend/ServiceProvider.php @@ -1,8 +1,6 @@ putSession('groups', $statuses); } - protected function getGroupStatus($group) + protected function getGroupStatus($group, $default = true) { $statuses = $this->getGroupStatuses(); if (array_key_exists($group, $statuses)) { return $statuses[$group]; } - return true; + return $default; } } diff --git a/modules/backend/traits/InspectableContainer.php b/modules/backend/traits/InspectableContainer.php index a3b5f5c70..62ddb6295 100644 --- a/modules/backend/traits/InspectableContainer.php +++ b/modules/backend/traits/InspectableContainer.php @@ -1,7 +1,6 @@ updateList(); } - public function onGroupStatusUpdate() - { - $this->setGroupStatus(Input::get('group'), Input::get('status')); - } - /* * Methods for th internal use */ @@ -262,37 +254,4 @@ class ComponentList extends WidgetBase return false; } - - protected function getGroupStatuses() - { - if ($this->groupStatusCache !== false) { - return $this->groupStatusCache; - } - - $groups = $this->getSession('groups'); - if (!is_array($groups)) { - return $this->groupStatusCache = []; - } - - return $this->groupStatusCache = $groups; - } - - protected function setGroupStatus($group, $status) - { - $statuses = $this->getGroupStatuses(); - $statuses[$group] = $status; - $this->groupStatusCache = $statuses; - - $this->putSession('groups', $statuses); - } - - protected function getGroupStatus($group) - { - $statuses = $this->getGroupStatuses(); - if (array_key_exists($group, $statuses)) { - return $statuses[$group]; - } - - return false; - } } diff --git a/modules/cms/widgets/componentlist/partials/_items.htm b/modules/cms/widgets/componentlist/partials/_items.htm index a182623a7..003e79f28 100644 --- a/modules/cms/widgets/componentlist/partials/_items.htm +++ b/modules/cms/widgets/componentlist/partials/_items.htm @@ -1,7 +1,7 @@