- Portions created by the Initial Developer are Copyright (C) 2021-2024
+ Portions created by the Initial Developer are Copyright (C) 2021-2025
the Initial Developer. All Rights Reserved.
*/
@@ -205,7 +205,7 @@
$list_row_url = '';
if (permission_exists('dashboard_edit')) {
$list_row_url = "dashboard_edit.php?id=".urlencode($row['dashboard_uuid']);
- if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
+ if (!empty($row['domain_uuid']) && $row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
}
diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php
index 6de7263bb0..de2774ed74 100644
--- a/core/dashboard/dashboard_edit.php
+++ b/core/dashboard/dashboard_edit.php
@@ -55,9 +55,12 @@
$dashboard_content = '';
$dashboard_content_text_align = '';
$dashboard_content_details = '';
+ $dashboard_chart_type = '';
$dashboard_label_enabled = 'true';
$dashboard_label_text_color = '';
+ $dashboard_label_text_color_hover = '';
$dashboard_label_background_color = '';
+ $dashboard_label_background_color_hover = '';
$dashboard_number_text_color = '';
$dashboard_number_background_color = '';
$dashboard_groups = [];
diff --git a/core/dashboard/index.php b/core/dashboard/index.php
index ce32e51e14..5c09edc1fb 100644
--- a/core/dashboard/index.php
+++ b/core/dashboard/index.php
@@ -172,7 +172,7 @@
require_once "resources/header.php";
//include websockets
- $version = md5(file_get_contents(__DIR__, '/resources/javascript/ws_client.js'));
+ $version = md5(file_get_contents(__DIR__ . '/resources/javascript/ws_client.js'));
echo "\n";
//include sortablejs
@@ -204,7 +204,7 @@
echo " ".$text['title-dashboard']."
\n";
echo "