From ccd19e7d65d69c3da5528b62576511267f8602c1 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Tue, 25 Nov 2025 17:31:09 -0700 Subject: [PATCH] Set default widget boolean values (#7646) --- core/dashboard/dashboard_widget_edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/dashboard/dashboard_widget_edit.php b/core/dashboard/dashboard_widget_edit.php index 7907cc5c81..621be57f7c 100644 --- a/core/dashboard/dashboard_widget_edit.php +++ b/core/dashboard/dashboard_widget_edit.php @@ -49,7 +49,6 @@ $widget_content_text_align = ''; $widget_content_details = ''; $widget_groups = []; - $widget_label_enabled = ''; $widget_label_text_color = ''; $widget_label_text_color_hover = ''; $widget_label_background_color = ''; @@ -63,7 +62,6 @@ $widget_details_state = ''; $widget_parent_uuid = ''; $widget_order = ''; - $widget_enabled = ''; $widget_description = ''; //action add or update @@ -474,6 +472,10 @@ $widget_groups[$x]['dashboard_widget_group_uuid'] = uuid(); $widget_groups[$x]['group_uuid'] = ''; +//set the defaults + $widget_label_enabled = $widget_label_enabled ?? true; + $widget_enabled = $widget_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']);