From 6f8bf104b44377a7d3a0497eea00e3728042a367 Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 25 Nov 2019 13:50:26 +0100 Subject: [PATCH 1/2] update sap view --- .../operation/agentes/ver_agente.php | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index aa91a09ee6..9c8ca5748b 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -1532,25 +1532,28 @@ switch ($tab) { break; } -ui_print_page_header( - agents_get_alias($id_agente), - $icon, - false, - $help_header, - false, - $onheader, - false, - '', - $config['item_title_size_text'], - '', - ui_print_breadcrums( - [ - __('Monitoring'), - __('View'), - ''.$tab_name.'', - ] - ) -); +if (!$config['pure']) { + ui_print_page_header( + agents_get_alias($id_agente), + $icon, + false, + $help_header, + false, + $onheader, + false, + '', + $config['item_title_size_text'], + '', + ui_print_breadcrums( + [ + __('Monitoring'), + __('View'), + ''.$tab_name.'', + ] + ) + ); +} + switch ($tab) { From 0490024abc0b21cab1f4f73e86524057d3e74dcd Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 25 Nov 2019 15:01:27 +0100 Subject: [PATCH 2/2] add sap view to autorefresh edit my user --- pandora_console/operation/users/user_edit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index fcc719dfaa..7aa3c5f839 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -469,6 +469,9 @@ $autorefresh_list_out['operation/agentes/pandora_networkmap'] = 'Network map'; $autorefresh_list_out['operation/visual_console/render_view'] = 'Visual console'; $autorefresh_list_out['operation/events/events'] = 'Events'; $autorefresh_list_out['enterprise/godmode/reporting/cluster_view'] = 'Cluster view'; +if (enterprise_installed()) { + $autorefresh_list_out['general/sap_view'] = 'SAP view'; +} if (!isset($autorefresh_list)) { $select = db_process_sql("SELECT autorefresh_white_list FROM tusuario WHERE id_user = '".$config['id_user']."'");