From 59c1a10056e7dc0431128edbdd7e89ca7371927a Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 6 Oct 2021 11:56:19 +0200 Subject: [PATCH] #8053 Fixed refresh in public dashboard --- pandora_console/views/dashboard/header.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pandora_console/views/dashboard/header.php b/pandora_console/views/dashboard/header.php index c828740565..9eac0b1b00 100644 --- a/pandora_console/views/dashboard/header.php +++ b/pandora_console/views/dashboard/header.php @@ -29,8 +29,6 @@ // Button for display full screen mode. global $config; - - $queryFull = [ 'dashboardId' => $dashboardId, 'refr' => $refr, @@ -141,10 +139,11 @@ $publiclink['text'] .= html_print_image( ); $publiclink['text'] .= ''; +// Check if it is a public dashboard. +$public_dashboard_hash = get_parameter('hash', false); + // Refresh selector time dashboards. -if (isset($config['public_dashboard']) === true - && (bool) $config['public_dashboard'] === true -) { +if ($public_dashboard_hash !== false) { $urlRefresh = $publicUrl; } else { $queryRefresh = [