mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Set default widget boolean values (#7646)
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user