From ada52da89812fed6b55c7914ef19ccb3d794ca8f Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 29 Jun 2023 16:09:07 +0200 Subject: [PATCH] #10850 agent detail view added to favorites system --- pandora_console/operation/agentes/estado_agente.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 3a130c1d76..7e36c63491 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -205,6 +205,14 @@ if ($loaded_filter['id_filter'] > 0) { if (is_array($policies) === false) { $policies = json_decode(io_safe_output($policies), true); } + + // Fav menu. + $fav_menu = [ + 'id_element' => $loaded_filter['id_filter'], + 'url' => 'operation/agentes/estado_agente&pure=&load_filter=1&filter_id='.$loaded_filter['id_filter'], + 'label' => $loaded_filter['id_name'], + 'section' => 'Agente', + ]; } if ((bool) check_acl($config['id_user'], 0, 'AW') === true) { @@ -249,7 +257,8 @@ ui_print_standard_header( 'link' => '', 'label' => __('Views'), ], - ] + ], + (empty($fav_menu) === true) ? [] : $fav_menu ); if ((bool) $strict_user === false) {