diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 4434014848..998dccaa10 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -54,6 +54,7 @@ $queue_announce_frequency = ''; $queue_cc_exit_keys = ''; $queue_description = ''; + $queue_timeout_action = ''; //action add or update if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) { diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index beb2796514..6a62bf0cca 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -56,6 +56,7 @@ $call_flow_label = ''; $call_flow_alternate_label = ''; $call_flow_description = ''; + $call_flow_status = ''; //action add or update if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) { diff --git a/app/contacts/contact_address_edit.php b/app/contacts/contact_address_edit.php index c1df2fc625..c3e9074ac6 100644 --- a/app/contacts/contact_address_edit.php +++ b/app/contacts/contact_address_edit.php @@ -154,7 +154,7 @@ $parameters['domain_uuid'] = $domain_uuid; $parameters['contact_uuid'] = $contact_uuid; $database = new database; - $database->execute($sql, $parameters ?? null); + $database->execute($sql, $parameters); unset($sql, $parameters); } @@ -203,14 +203,14 @@ //pre-populate the form if (!empty($_GET) && empty($_POST["persistformvar"])) { - $contact_address_uuid = $_GET["id"]; + $contact_address_uuid = $_GET["id"] ?? ''; $sql = "select * from v_contact_addresses "; $sql .= "where domain_uuid = :domain_uuid "; $sql .= "and contact_address_uuid = :contact_address_uuid "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['contact_address_uuid'] = $contact_address_uuid; $database = new database; - $row = $database->select($sql, $parameters ?? null, 'row'); + $row = $database->select($sql, $parameters, 'row'); if (!empty($row)) { $address_type = $row["address_type"]; $address_label = $row["address_label"]; diff --git a/app/database_transactions/database_transactions.php b/app/database_transactions/database_transactions.php index 9b392392c5..4eb1203c10 100644 --- a/app/database_transactions/database_transactions.php +++ b/app/database_transactions/database_transactions.php @@ -48,6 +48,7 @@ //set default values $search = ''; + $user_uuid = ''; //get variables used to control the order $order_by = $_GET["order_by"] ?? ''; diff --git a/app/devices/device_profiles.php b/app/devices/device_profiles.php index f9b429dd74..a0ecb1f05d 100644 --- a/app/devices/device_profiles.php +++ b/app/devices/device_profiles.php @@ -52,6 +52,9 @@ $profiles = $_POST['profiles']; } +//set additional variables + $show = $_GET["show"] ?? ''; + //get the search $search = strtolower($_REQUEST["search"] ?? ''); $fields = strtolower($_REQUEST["fields"] ?? ''); @@ -114,7 +117,7 @@ //get the count $sql = "select count(*) from v_device_profiles "; $sql .= "where true "; - if (!empty($_GET['show']) || $_GET['show'] != "all" || !permission_exists('device_profile_all')) { + if ($show != "all" || !permission_exists('device_profile_all')) { $sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; $parameters['domain_uuid'] = $domain_uuid; } @@ -129,7 +132,7 @@ $param .= "&search=".$search; $param .= "&fields=".$fields; } - if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_profile_all')) { + if ($show == "all" && permission_exists('device_profile_all')) { $param .= "&show=all"; } $page = $_GET['page'] ?? 0; @@ -172,7 +175,7 @@ } echo "