Convert boolean values to a string before being copied (#7591)

* Convert boolean values to a string before being copied

* Update access_controls.php

* Update copyright year and handle boolean values

Updated copyright year from 2019 to 2025 and added conversion of boolean values to strings in the database result processing.

* Update call_block.php

* Update call_center.php

* Update call_flows.php

* Update conference_controls.php

* Update conference_profiles.php

* Update conferences.php

* Update device.php

* Update dialplan.php

* Update event_guard.php

* Update extension_settings.php

* Update fax.php

* Update fax_queue.php

* Update gateways.php

* Update ivr_menu.php

* Update number_translations.php

* Update phrases.php

* Update pin_numbers.php

* Update ring_groups.php

* Update streams.php

* Update time_conditions.php

* Update vars.php

* Update email_templates.php

* Update users.php

* Update domains.php

* Update groups.php

* Update extension_copy.php

* Update device_copy.php
This commit is contained in:
Alex
2025-10-22 16:14:22 -07:00
committed by GitHub
parent 0ab13ffc31
commit 126779190f
30 changed files with 485 additions and 51 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2019
Portions created by the Initial Developer are Copyright (C) 2008-2025
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -66,7 +66,40 @@
}
//get the extension data
$sql = "select * from v_extensions ";
$sql = "select ";
$sql .= "extension, ";
$sql .= "number_alias, ";
$sql .= "accountcode, ";
$sql .= "effective_caller_id_name, ";
$sql .= "effective_caller_id_number, ";
$sql .= "outbound_caller_id_name, ";
$sql .= "outbound_caller_id_number, ";
$sql .= "emergency_caller_id_name, ";
$sql .= "emergency_caller_id_number, ";
$sql .= "directory_visible, ";
$sql .= "directory_exten_visible, ";
$sql .= "limit_max, ";
$sql .= "limit_destination, ";
$sql .= "user_context, ";
$sql .= "missed_call_app, ";
$sql .= "missed_call_data, ";
$sql .= "toll_allow, ";
$sql .= "call_timeout, ";
$sql .= "call_group, ";
$sql .= "user_record, ";
$sql .= "hold_music, ";
$sql .= "auth_acl, ";
$sql .= "cidr, ";
$sql .= "sip_force_contact, ";
$sql .= "nibble_account, ";
$sql .= "sip_force_expires, ";
$sql .= "mwi_account, ";
$sql .= "sip_bypass_media, ";
$sql .= "dial_string, ";
$sql .= "extension_type, ";
$sql .= "cast(enabled as text), ";
$sql .= "description ";
$sql .= "from v_extensions ";
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and extension_uuid = :extension_uuid ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
@@ -151,7 +184,12 @@
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
//get the voicemails
$sql = "select * from v_voicemails ";
$sql = "select ";
$sql .= "voicemail_mail_to, ";
$sql .= "voicemail_file, ";
$sql .= "voicemail_local_after_email, ";
$sql .= "cast(voicemail_enabled as text) ";
$sql .= "from v_voicemails ";
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and voicemail_id = :voicemail_id ";
$parameters['voicemail_id'] = is_numeric($number_alias) ? $number_alias : $extension;
@@ -198,4 +236,4 @@
header("Location: extensions.php?".(!empty($order_by) ? '&order_by='.$order_by.'&order='.$order : null).(is_numeric($page) ? '&page='.$page : null));
exit;
?>
?>