From 506093fd6400dec6cce90673bed6e0a17f73d731 Mon Sep 17 00:00:00 2001 From: frytimo Date: Fri, 15 Aug 2025 14:52:52 -0300 Subject: [PATCH] Fix exit key unable to be zero (#7458) --- app/call_centers/call_center_queue_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 182bc0f3ff..1cb7f1d9c9 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -134,7 +134,7 @@ $queue_announce_position = $_POST["queue_announce_position"] ?? null; $queue_announce_sound = $_POST["queue_announce_sound"]; $queue_announce_frequency = $_POST["queue_announce_frequency"]; - $queue_cc_exit_keys = $_POST["queue_cc_exit_keys"]; + $queue_cc_exit_keys = $_POST["queue_cc_exit_keys"] ?? null; $queue_email_address = $_POST["queue_email_address"] ?? null; $queue_description = $_POST["queue_description"]; @@ -435,7 +435,7 @@ if (!empty($queue_cid_prefix)) { $dialplan_xml .= " \n"; } - if (!empty($queue_cc_exit_keys)) { + if ($queue_cc_exit_keys !== null) { $dialplan_xml .= " \n"; } $dialplan_xml .= " \n";