From 6ede68bf8da49789127202e10f9dcfa935642168 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Tue, 6 Nov 2018 13:10:44 +0100 Subject: [PATCH] Fixed delete menu on main page dashboards --- pandora_console/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/index.php b/pandora_console/index.php index 1fc6e932ed..9111aec168 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -452,6 +452,7 @@ if (! isset ($config['id_user'])) { $id_dashboard_select = db_get_value('id', 'tdashboard', 'name', $home_url); $_GET['id_dashboard_select'] = $id_dashboard_select; + $_GET['d_from_main_page'] = 1; break; case 'Visual console': $_GET["sec"] = "network"; @@ -1057,9 +1058,8 @@ else { $_GET['sec2'] = 'general/logon_ok'; break; case 'Dashboard': - $dashboard_from_main_page = 1; $id_dashboard = db_get_value('id', 'tdashboard', 'name', $home_url); - $str = 'sec=reporting&sec2='.ENTERPRISE_DIR.'/dashboard/main_dashboard&id='.$id_dashboard; + $str = 'sec=reporting&sec2='.ENTERPRISE_DIR.'/dashboard/main_dashboard&id='.$id_dashboard.'&d_from_main_page=1'; parse_str($str, $res); foreach ($res as $key => $param) { $_GET[$key] = $param;