From 0f238f9ef74f03c390ba922cca535f8b55ba604a Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Fri, 19 Feb 2021 09:17:36 +0000 Subject: [PATCH] Fix Security Groups Subpanel Insight --- core/legacy/Statistics/SubpanelDefault.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/legacy/Statistics/SubpanelDefault.php b/core/legacy/Statistics/SubpanelDefault.php index 488884cf8..ab41c4507 100644 --- a/core/legacy/Statistics/SubpanelDefault.php +++ b/core/legacy/Statistics/SubpanelDefault.php @@ -25,11 +25,8 @@ class SubpanelDefault extends SubpanelDataQueryHandler implements StatisticsProv */ public function getData(array $query): Statistic { - $subpanel = $query['key']; - if ($subpanel === 'default' && isset($query['params']['subpanel'])) { - $subpanel = $query['params']['subpanel']; - } + $subpanel = $query['params']['subpanel'] ?? $query['key']; [$module, $id] = $this->extractContext($query); if (empty($module) || empty($id)) {