Set default widget boolean values (#7646)

This commit is contained in:
Alex
2025-11-25 17:31:09 -07:00
committed by GitHub
parent 48038090fc
commit ccd19e7d65

View File

@@ -49,7 +49,6 @@
$widget_content_text_align = ''; $widget_content_text_align = '';
$widget_content_details = ''; $widget_content_details = '';
$widget_groups = []; $widget_groups = [];
$widget_label_enabled = '';
$widget_label_text_color = ''; $widget_label_text_color = '';
$widget_label_text_color_hover = ''; $widget_label_text_color_hover = '';
$widget_label_background_color = ''; $widget_label_background_color = '';
@@ -63,7 +62,6 @@
$widget_details_state = ''; $widget_details_state = '';
$widget_parent_uuid = ''; $widget_parent_uuid = '';
$widget_order = ''; $widget_order = '';
$widget_enabled = '';
$widget_description = ''; $widget_description = '';
//action add or update //action add or update
@@ -474,6 +472,10 @@
$widget_groups[$x]['dashboard_widget_group_uuid'] = uuid(); $widget_groups[$x]['dashboard_widget_group_uuid'] = uuid();
$widget_groups[$x]['group_uuid'] = ''; $widget_groups[$x]['group_uuid'] = '';
//set the defaults
$widget_label_enabled = $widget_label_enabled ?? true;
$widget_enabled = $widget_enabled ?? true;
//create token //create token
$object = new token; $object = new token;
$token = $object->create($_SERVER['PHP_SELF']); $token = $object->create($_SERVER['PHP_SELF']);