diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php index a3bef66ead..4f5a44667a 100644 --- a/app/call_block/call_block_edit.php +++ b/app/call_block/call_block_edit.php @@ -281,6 +281,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $call_block_enabled = $call_block_enabled ?? true; + //get the extensions if (permission_exists('call_block_all') || permission_exists('call_block_extension')) { $sql = "select extension_uuid, extension, number_alias, user_context, description from v_extensions "; diff --git a/app/call_broadcast/call_broadcast_edit.php b/app/call_broadcast/call_broadcast_edit.php index bd988bf71b..3b3b65d50e 100644 --- a/app/call_broadcast/call_broadcast_edit.php +++ b/app/call_broadcast/call_broadcast_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2024 + Portions created by the Initial Developer are Copyright (C) 2008-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -311,6 +311,9 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) { unset($sql, $parameters, $row); } +//set the defaults + $broadcast_avmd = $broadcast_avmd ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php index 120b3755b5..48665dec69 100644 --- a/app/call_centers/call_center_agent_edit.php +++ b/app/call_centers/call_center_agent_edit.php @@ -309,7 +309,7 @@ if (empty($agent_no_answer_delay_time)) { $agent_no_answer_delay_time = "30"; } if (empty($agent_reject_delay_time)) { $agent_reject_delay_time = "90"; } if (empty($agent_busy_delay_time)) { $agent_busy_delay_time = "90"; } - if ($agent_record === null) { $agent_record = false; } + $agent_record = $agent_record ?? false; //create token $object = new token; diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index e14e91eca1..5ed2a66e36 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -682,7 +682,8 @@ unset($sounds); } -//set the default values +//set default values + $queue_greeting = $queue_greeting ?? ''; $queue_strategy = $queue_strategy ?? "longest-idle-agent"; $queue_moh_sound = $queue_moh_sound ?? "\$\${hold_music}"; $queue_time_base_score = $queue_time_base_score ?? "system"; @@ -691,12 +692,13 @@ $queue_max_wait_time_with_no_agent_time_reached = $queue_max_wait_time_with_no_agent_time_reached ?? "30"; $queue_tier_rule_wait_second = $queue_tier_rule_wait_second ?? "30"; $queue_discard_abandoned_after = $queue_discard_abandoned_after ?? "900"; - $queue_context = $queue_context ?? $domain_name; $queue_record_template = $queue_record_template ?? 'false'; $queue_tier_rules_apply = $queue_tier_rules_apply ?? false; $queue_tier_rule_wait_multiply_level = $queue_tier_rule_wait_multiply_level ?? true; $queue_tier_rule_no_agent_no_wait = $queue_tier_rule_no_agent_no_wait ?? true; $queue_abandoned_resume_allowed = $queue_abandoned_resume_allowed ?? false; + $queue_announce_sound = $queue_announce_sound ?? ''; + $queue_context = $queue_context ?? $domain_name; //create token $object = new token; diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index 665ad55a8b..b9b5cc1ad1 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -352,6 +352,9 @@ unset ($sql, $parameters, $result, $row); } +//set the defaults + $call_flow_enabled = $call_flow_enabled ?? true; + //set the context for users that are not in the superadmin group if (empty($call_flow_context)) { $call_flow_context = $_SESSION['domain_name']; diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php index 4774efe772..88f85ccdb0 100644 --- a/app/conference_centers/conference_center_edit.php +++ b/app/conference_centers/conference_center_edit.php @@ -224,8 +224,9 @@ unset($sql, $parameters, $row); } -//set defaults - if (empty($conference_center_pin_length)) { $conference_center_pin_length = 9; } +//set the defaults + $conference_center_pin_length = $conference_center_pin_length ?? 9; + $conference_center_enabled = $conference_center_enabled ?? true; //get the sounds $sounds = new sounds; diff --git a/app/conference_centers/conference_room_edit.php b/app/conference_centers/conference_room_edit.php index 0a279a1c58..17b6139021 100644 --- a/app/conference_centers/conference_room_edit.php +++ b/app/conference_centers/conference_room_edit.php @@ -471,6 +471,18 @@ unset($sql, $parameters, $row); } +//set the defaults + $profile = $profile ?? 'default'; + $record = $record ?? false; + $wait_mod = $wait_mod ?? true; + $moderator_endconf = $moderator_endconf ?? false; + $announce_name = $announce_name ?? true; + $announce_count = $announce_count ?? true; + $announce_recording = $announce_recording ?? true; + $mute = $mute ?? false; + $enabled = $enabled ?? true; + $sounds = $sounds ?? false; + //get the users assigned to this conference room $sql = "select u.username, u.user_uuid, r.conference_room_user_uuid "; $sql .= "from v_users as u, v_conference_room_users as r "; @@ -500,9 +512,6 @@ $users = $database->select($sql, $parameters ?? null, 'all'); unset($sql, $parameters); -//set default profile - if (empty($profile)) { $profile = 'default'; } - //get default pins if (empty($moderator_pin)) { $moderator_pin = get_conference_pin($pin_length ?? '', $conference_room_uuid ?? ''); @@ -660,8 +669,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; @@ -720,8 +729,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; @@ -811,8 +820,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; @@ -879,8 +888,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; diff --git a/app/conference_controls/conference_control_detail_edit.php b/app/conference_controls/conference_control_detail_edit.php index a6c5652c13..acda845b56 100644 --- a/app/conference_controls/conference_control_detail_edit.php +++ b/app/conference_controls/conference_control_detail_edit.php @@ -148,6 +148,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $control_enabled = $control_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/conference_controls/conference_control_edit.php b/app/conference_controls/conference_control_edit.php index 62f49e37b8..86852f1568 100644 --- a/app/conference_controls/conference_control_edit.php +++ b/app/conference_controls/conference_control_edit.php @@ -140,6 +140,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $control_enabled = $control_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/conference_profiles/conference_profile_edit.php b/app/conference_profiles/conference_profile_edit.php index 8cd56918e1..9243c460c3 100644 --- a/app/conference_profiles/conference_profile_edit.php +++ b/app/conference_profiles/conference_profile_edit.php @@ -141,6 +141,9 @@ unset($sql, $parameters); } +//set the defaults + $profile_enabled = $profile_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/conference_profiles/conference_profile_param_edit.php b/app/conference_profiles/conference_profile_param_edit.php index 394d36d6e0..852fc4ecfc 100644 --- a/app/conference_profiles/conference_profile_param_edit.php +++ b/app/conference_profiles/conference_profile_param_edit.php @@ -151,6 +151,9 @@ unset($sql, $parameters); } +//set the defaults + $profile_param_enabled = $profile_param_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php index cf75822b84..d567ae68e6 100644 --- a/app/conferences/conference_edit.php +++ b/app/conferences/conference_edit.php @@ -313,7 +313,9 @@ } //set the defaults - if (empty($conference_context)) { $conference_context = $_SESSION['domain_name']; } + $conference_profile = $conference_profile ?? 'default'; + $conference_context = $conference_context ?? $_SESSION['domain_name']; + $conference_enabled = $conference_enabled ?? true; //get the conference profiles $sql = "select * "; @@ -342,9 +344,6 @@ $users = $database->select($sql, $parameters ?? null, 'all'); unset($sql, $parameters); -//set the default - if (empty($conference_profile)) { $conference_profile = "default"; } - //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index bb3b56e386..39ab9d83ba 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -1484,8 +1484,9 @@ if (empty($destination_order)) { $destination_order = '100'; } if (empty($destination_type)) { $destination_type = 'inbound'; } if (empty($destination_context)) { $destination_context = 'public'; } - if ($destination_type =="outbound") { $destination_context = $_SESSION['domain_name']; } - if ($destination_type =="local") { $destination_context = $_SESSION['domain_name']; } + if ($destination_type == "outbound") { $destination_context = $_SESSION['domain_name']; } + if ($destination_type == "local") { $destination_context = $_SESSION['domain_name']; } + $destination_enabled = $destination_enabled ?? true; //initialize the destinations object if (permission_exists('destination_domain') && is_uuid($domain_uuid)) { diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index b3678638d4..033d269e38 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -55,6 +55,7 @@ } else { $action = "add"; + $device_uuid = uuid(); } //get the total device count from the database, check the limit, if defined @@ -529,6 +530,10 @@ unset($sql, $parameters, $row); } +//set the default values + $device_address = $device_address ?? ''; + $device_enabled = $device_enabled ?? true; + //get device lines $sql = "select * "; $sql .= "from v_domains "; @@ -536,9 +541,6 @@ $domains = $database->select($sql, null, 'all'); unset($sql, $parameters); -//set the defaults - $device_enabled = $device_enabled ?? true; - //use the device address to get the vendor if (empty($device_vendor)) { //get the device vendor using the device address @@ -576,6 +578,8 @@ unset($sql, $parameters); //set the new line defaults + $device_lines[$x]['device_uuid'] = ''; + $device_lines[$x]['domain_name'] = ''; $device_lines[$x]['line_number'] = ''; $device_lines[$x]['server_address'] = ''; $device_lines[$x]['outbound_proxy_primary'] = $settings->get('provision', 'outbound_proxy_primary', null); diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 7857543b77..cb04162ce0 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -428,6 +428,9 @@ exit; } +//set the defaults + $dialplan_enabled = $dialplan_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); @@ -807,4 +810,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index c22d639749..50c505e68a 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -862,6 +862,9 @@ return; } +//set the defaults + $dialplan_enabled = $dialplan_enabled ?? true; + //get the domains $sql = "select * from v_domains "; $sql .= "where domain_enabled = true "; diff --git a/app/dialplans/dialplan_add.php b/app/dialplans/dialplan_add.php index 9cab363a2a..f4b726b31e 100644 --- a/app/dialplans/dialplan_add.php +++ b/app/dialplans/dialplan_add.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2023 + Portions created by the Initial Developer are Copyright (C) 2008-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -73,8 +73,9 @@ $dialplan_description = $_POST["dialplan_description"]; } -//set the default - if (empty($dialplan_context)) { $dialplan_context = $_SESSION['domain_name']; } +//set the defaults + $dialplan_context = $dialplan_context ?? $_SESSION['domain_name']; + $dialplan_enabled = $dialplan_enabled ?? true; //add or update data from http post if (count($_POST)>0 && empty($_POST["persistformvar"])) { diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index cc342f3ae8..f84adcae4e 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_edit.php @@ -390,15 +390,11 @@ unset($sql, $parameters); //set the defaults - if (empty($dialplan_context)) { - $dialplan_context = $_SESSION['domain_name']; - } - if (empty($dialplan_order)) { - $dialplan_order = '200'; - } - if (empty($dialplan_destination)) { - $dialplan_destination = false; - } + $dialplan_context = $dialplan_context ?? $_SESSION['domain_name']; + $dialplan_order = $dialplan_order ?? '200'; + $dialplan_destination = $dialplan_destination ?? false; + $dialplan_continue = $dialplan_continue ?? true; + $dialplan_enabled = $dialplan_enabled ?? true; //define the maximum dialplan order number $dialplan_order_max = 999; diff --git a/app/event_guard/event_guard_logs.php b/app/event_guard/event_guard_logs.php index 952bdedcbb..bc0495d38c 100644 --- a/app/event_guard/event_guard_logs.php +++ b/app/event_guard/event_guard_logs.php @@ -1,7 +1,7 @@ + Copyright (C) 2022-2025 Mark J Crane Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -237,7 +237,7 @@ $list_row_url = ''; if (permission_exists('event_guard_log_edit')) { $list_row_url = "event_guard_log_edit.php?id=".urlencode($row['event_guard_log_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/app/extension_settings/extension_setting_edit.php b/app/extension_settings/extension_setting_edit.php index e01964769b..e3fcba2627 100644 --- a/app/extension_settings/extension_setting_edit.php +++ b/app/extension_settings/extension_setting_edit.php @@ -205,6 +205,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $extension_setting_enabled = $extension_setting_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); @@ -366,4 +369,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index e826165dd6..fc59d13ef3 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -77,8 +77,8 @@ $provision_line_sip_port = $settings->get('provision','line_sip_port', null); $provision_line_sip_transport = $settings->get('provision','line_sip_transport', null); $provision_line_register_expires = $settings->get('provision','line_register_expires', null); - $theme_input_toggle_style = $settings->get('theme','input_toggle_style', ''); //set default to empty string - $voicemail_password_length = $settings->get('voicemail', 'password_length', 6); //set default to 6 + $theme_input_toggle_style = $settings->get('theme','input_toggle_style', ''); //set default to empty string + $voicemail_password_length = $settings->get('voicemail', 'password_length', 6); //set default to 6 $voicemail_transcription_enabled_default = $settings->get('voicemail', 'transcription_enabled_default', false); //set default to false $voicemail_enabled_default = $settings->get('voicemail', 'enabled_default', true); $switch_voicemail = $settings->get('switch', 'voicemail', '/var/lib/freeswitch/storage/voicemail') . "/default/$domain_name"; diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index ea0e4b1b29..3876f45dc2 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2024 + Portions created by the Initial Developer are Copyright (C) 2008-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -38,6 +38,9 @@ $language = new text; $text = $language->get(); +//set the defaults + $fax_file = ''; + //get the fax_extension and save it as a variable if (isset($_REQUEST["fax_extension"])) { $fax_extension = $_REQUEST["fax_extension"]; @@ -776,4 +779,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/fifo/fifo_edit.php b/app/fifo/fifo_edit.php index 53ddbca54f..cb19ab4f60 100644 --- a/app/fifo/fifo_edit.php +++ b/app/fifo/fifo_edit.php @@ -18,7 +18,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2024 + Portions created by the Initial Developer are Copyright (C) 2024-2025 the Initial Developer. All Rights Reserved. */ @@ -36,6 +36,11 @@ $language = new text; $text = $language->get(); +//set the defaults + $fifo_strategy = ''; + $fifo_exit_key = ''; + $fifo_exit_action = ''; + //add the settings object $settings = new settings(["domain_uuid" => $_SESSION['domain_uuid'], "user_uuid" => $_SESSION['user_uuid']]); @@ -419,6 +424,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $fifo_enabled = $fifo_enabled ?? true; + //get the child data if (!empty($fifo_uuid) && is_uuid($fifo_uuid)) { $sql = "select "; diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 60c2d93ab4..a5fe11c21a 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -326,12 +326,12 @@ $profile = $profile ?? ''; $hostname = $hostname ?? ''; $description = $description ?? ''; - $register = $register ?? false; + $register = $register ?? true; $distinct_to = $distinct_to ?? false; $caller_id_in_from = $caller_id_in_from ?? false; $supress_cng = $supress_cng ?? false; $contact_in_ping = $contact_in_ping ?? false; - $enabled = $enabled ?? false; + $enabled = $enabled ?? true; //create token $object = new token; diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index 7210368549..dcb29f5d2e 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -46,6 +46,8 @@ $ivr_menu_name = ''; $ivr_menu_extension = ''; $ivr_menu_cid_prefix = ''; + $ivr_menu_greet_long = ''; + $ivr_menu_greet_short = ''; $ivr_menu_description = ''; $ivr_menu_ringback = $settings->get('ivr_menu','default_ringback', 'local_stream://default'); diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php index 659530f76b..d6567f8ce1 100644 --- a/app/phrases/phrase_edit.php +++ b/app/phrases/phrase_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2023 + Portions created by the Initial Developer are Copyright (C) 2008-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -300,6 +300,9 @@ $recordings = $database->select($sql, $parameters, 'all'); unset($sql, $parameters); +//set the defaults + $phrase_enabled = $phrase_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 5c1f837c88..10db06e22c 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -588,8 +588,13 @@ } //set the defaults + $ring_group_exit_key = $ring_group_exit_key ?? ''; $ring_group_call_timeout = $ring_group_call_timeout ?? '30'; $ring_group_greeting = $ring_group_greeting ?? ''; + $ring_group_forward_enabled = $ring_group_forward_enabled ?? false; + $ring_group_context = $ring_group_context ?? $domain_name; + $ring_group_enabled = $ring_group_enabled ?? true; + $destination_enabled = $row['destination_enabled'] ?? false; //get the ring group destination array if ($action == "add") { @@ -650,11 +655,6 @@ $users = $database->select($sql, $parameters, 'all'); unset($sql, $parameters); -//set the default ring group context - if (empty($ring_group_context)) { - $ring_group_context = $domain_name; - } - //get the ring backs $ringbacks = new ringbacks; $ringbacks = $ringbacks->select('ring_group_ringback', $ring_group_ringback); @@ -983,8 +983,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; @@ -1252,8 +1252,8 @@ echo " \n"; } echo " \n"; if ($input_toggle_style_switch) { echo " \n"; diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index 91748a79da..497f7eea23 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_edit.php @@ -355,6 +355,9 @@ } unset($sql); +//set the defaults + $sip_profile_enabled = $sip_profile_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/streams/stream_edit.php b/app/streams/stream_edit.php index 2c29737bf1..904f6fff18 100644 --- a/app/streams/stream_edit.php +++ b/app/streams/stream_edit.php @@ -232,6 +232,9 @@ return; } +//set the defaults + $stream_enabled = $stream_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index cde80f3ff0..5dff9f2cbe 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -646,7 +646,8 @@ } //set the defaults - if (empty($dialplan_context)) { $dialplan_context = $_SESSION['domain_name']; } + $dialplan_context = $dialplan_context ?? $_SESSION['domain_name']; + $dialplan_enabled = $dialplan_enabled ?? true; //create token $object = new token; @@ -1330,4 +1331,4 @@ if ($action == 'update') { //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/vars/var_edit.php b/app/vars/var_edit.php index 5e2e89c1bb..efd09ba6e9 100644 --- a/app/vars/var_edit.php +++ b/app/vars/var_edit.php @@ -175,6 +175,9 @@ unset($sql, $parameters); } +//set the defaults + $var_enabled = $var_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 27b30ea21c..e48fbaa7de 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -377,12 +377,12 @@ } //set the defaults - if (!isset($voicemail_local_after_email)) { $voicemail_local_after_email = true; } - if (!isset($voicemail_enabled)) { $voicemail_enabled = $settings->get('voicemail', 'enabled_default', true); } - if (!isset($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = $settings->get('voicemail', 'transcription_enabled_default', false); } - if (!isset($voicemail_tutorial)) { $voicemail_tutorial = false; } - if (!isset($voicemail_recording_instructions)) { $voicemail_recording_instructions = true; } - if (!isset($voicemail_recording_options)) { $voicemail_recording_options = true; } + $voicemail_local_after_email = $voicemail_local_after_email ?? true; + $voicemail_enabled = $voicemail_enabled ?? $settings->get('voicemail', 'enabled_default', true); + $voicemail_transcription_enabled = $voicemail_transcription_enabled ?? $settings->get('voicemail', 'transcription_enabled_default', false); + $voicemail_tutorial = $voicemail_tutorial ?? false; + $voicemail_recording_instructions = $voicemail_recording_instructions ?? true; + $voicemail_recording_options = $voicemail_recording_options ?? true; //get the greetings list $sql = "select * from v_voicemail_greetings "; diff --git a/app/xml_cdr/xml_cdr_search.php b/app/xml_cdr/xml_cdr_search.php index 51c97187cb..b2e3992e01 100644 --- a/app/xml_cdr/xml_cdr_search.php +++ b/app/xml_cdr/xml_cdr_search.php @@ -63,6 +63,8 @@ $remote_media_ip = ""; $network_addr = ""; $mos_score = ""; + $call_center_queue_uuid = ""; + $ring_group_uuid = ""; //get the list of extensions $sql = "select extension_uuid, extension, number_alias from v_extensions "; diff --git a/core/dashboard/dashboard_widget_edit.php b/core/dashboard/dashboard_widget_edit.php index e66ecaaea9..7e82cb4f22 100644 --- a/core/dashboard/dashboard_widget_edit.php +++ b/core/dashboard/dashboard_widget_edit.php @@ -56,6 +56,8 @@ $widget_label_background_color_hover = ''; $widget_number_text_color = ''; $widget_number_background_color = ''; + $widget_background_gradient_style = ''; + $widget_background_gradient_angle = 0; $widget_column_span = ''; $widget_row_span = ''; $widget_details_state = ''; @@ -102,7 +104,7 @@ $widget_background_color_hover = $_POST["widget_background_color_hover"] ?? ''; $widget_detail_background_color = $_POST["widget_detail_background_color"] ?? ''; $widget_background_gradient_style = $_POST["widget_background_gradient_style"] ?? 'mirror'; - $widget_background_gradient_angle = $_POST["widget_background_gradient_angle"] ?? '90'; + $widget_background_gradient_angle = $_POST["widget_background_gradient_angle"] ?? '0'; $widget_column_span = $_POST["widget_column_span"] ?? ''; $widget_row_span = $_POST["widget_row_span"] ?? ''; $widget_details_state = $_POST["widget_details_state"] ?? ''; diff --git a/core/domains/domain_edit.php b/core/domains/domain_edit.php index bd76710914..a24b77ea9c 100644 --- a/core/domains/domain_edit.php +++ b/core/domains/domain_edit.php @@ -529,6 +529,9 @@ unset($sql, $parameters, $row); } +//set the defaults + $domain_enabled = $domain_enabled ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/core/groups/group_edit.php b/core/groups/group_edit.php index 6fb8050c5d..51c5fcba35 100644 --- a/core/groups/group_edit.php +++ b/core/groups/group_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2018-2023 + Portions created by the Initial Developer are Copyright (C) 2018-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -180,6 +180,9 @@ unset ($sql, $parameters, $row); } +//set the defaults + $group_protected = $group_protected ?? true; + //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 97eaeba986..b7a595b970 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -681,6 +681,9 @@ //set the defaults if (empty($user_totp_secret)) { $user_totp_secret = ""; } + $user_status = $user_status ?? ''; + $user_type = $user_type ?? 'default'; + $user_enabled = $user_enabled ?? true; //create token $object = new token;