diff --git a/pandora_console/include/rest-api/models/VisualConsole/Container.php b/pandora_console/include/rest-api/models/VisualConsole/Container.php index ad1f34a2ff..91c650c404 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Container.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Container.php @@ -319,7 +319,7 @@ final class Container extends Model // Default filter. $filter = ['id_layout' => $layoutId]; $fields = [ - 'id', + 'DISTINCT(id) AS id', 'type', 'cache_expiration', 'id_layout', @@ -340,8 +340,9 @@ final class Container extends Model // Only true condition if type is GROUP_ITEM. $filter[] = '('.\db_format_array_where_clause_sql( [ - 'type' => GROUP_ITEM, - 'id_group' => $groupsFilter, + 'id_layout' => $layoutId, + 'type' => GROUP_ITEM, + 'id_group' => $groupsFilter, ] ).')'; } diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index f52d830d14..5daf40d310 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -66,7 +66,7 @@ if (check_acl($config['id_user'], 0, 'AR')) { enterprise_hook('inventory_menu'); if ($config['activate_netflow'] || $config['activate_nta']) { - $sub['network'] = [ + $sub['network_traffic'] = [ 'text' => __('Network'), 'id' => 'Network', 'type' => 'direct', @@ -117,7 +117,7 @@ if (check_acl($config['id_user'], 0, 'AR')) { ); } - $sub['network']['sub2'] = $netflow_sub; + $sub['network_traffic']['sub2'] = $netflow_sub; } if ($config['log_collector'] == 1) {