From 2af6108b66e19fc293f4813499336a1b7665099a Mon Sep 17 00:00:00 2001
From: fermin831 <fermin.hernandez@artica.es>
Date: Tue, 23 Oct 2018 12:29:23 +0200
Subject: [PATCH] Removed dashboard menu if it is displayed from main page

---
 pandora_console/index.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pandora_console/index.php b/pandora_console/index.php
index c1f55dd120..f83ebc175a 100755
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -1058,6 +1058,7 @@ 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;
 					parse_str($str, $res);