diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index be6079d31e..7c0cbaf8d0 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -323,7 +323,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the context."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_record"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "boolean"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select whether to record the call."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_hold_music"; @@ -402,7 +402,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_email"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "boolean"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select whether to send email notifications of incoming SMS/MMS messages"; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date"; diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 3ecb791670..ba5c71b780 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -541,7 +541,7 @@ if (!empty($destination_cid_name_prefix)) { $dialplan["dialplan_xml"] .= " \n"; } - if (!empty($destination_record) && $destination_record == 'true') { + if (!empty($destination_record) && $destination_record === true) { $dialplan["dialplan_xml"] .= " \n"; $dialplan["dialplan_xml"] .= " \n"; $dialplan["dialplan_xml"] .= " \n"; @@ -935,7 +935,7 @@ } //add option record to the dialplan - if ($destination_record == "true") { + if ($destination_record === true) { //add a variable $dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid; @@ -1913,21 +1913,17 @@ echo " ".$text['label-destination_email']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + if ($input_toggle_style_switch) { + echo " \n"; + echo " \n"; } - if (!empty($destination_email) && $destination_email == "false") { - echo " \n"; - } - else { - echo " \n"; - } - echo " \n"; echo "
\n"; echo $text['description-destination_email']."\n"; echo "\n"; @@ -2000,21 +1996,17 @@ echo "\n"; echo "".$text['label-destination_record']."\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + if ($input_toggle_style_switch) { + echo " \n"; + echo " \n"; } - if ($destination_record == "false") { - echo " \n"; - } - else { - echo " \n"; - } - echo " \n"; echo "
\n"; echo $text['description-destination_record']."\n"; echo "\n"; diff --git a/app/destinations/destination_imports.php b/app/destinations/destination_imports.php index c3cfe5e83d..8b34d84099 100644 --- a/app/destinations/destination_imports.php +++ b/app/destinations/destination_imports.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-2024 + Portions created by the Initial Developer are Copyright (C) 2018-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -366,7 +366,7 @@ } //enable call recordings - if ($destination_record == "true") { + if ($destination_record === true) { $array["dialplans"][$row_id]["dialplan_details"][$y]["domain_uuid"] = $domain_uuid; $array["dialplans"][$row_id]["dialplan_details"][$y]["dialplan_detail_tag"] = "action"; @@ -810,16 +810,17 @@ echo " ".$text['label-destination_record']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + if ($input_toggle_style_switch) { + echo " \n"; + echo " \n"; } - echo " \n"; - echo " \n"; - unset($selected); - echo " \n"; echo "
\n"; echo ($text['description-destination_record'] ?? null)."\n"; echo "\n"; @@ -888,17 +889,17 @@ echo " ".$text['label-destination_enabled']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + if ($input_toggle_style_switch) { + echo " \n"; + echo " \n"; } - echo " \n"; - echo " \n"; - unset($selected); - echo " \n"; echo "
\n"; echo ($text['description-destination_enabled'] ?? null)."\n"; echo "\n";