diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index b67a1db1c8..a2568cfdaf 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -99,9 +99,6 @@ $queue_cc_exit_keys = check_str($_POST["queue_cc_exit_keys"]); $queue_description = check_str($_POST["queue_description"]); - //replace the space in the queue name with a dash - $queue_name = str_replace(" ", "-", $queue_name); - //remove invalid characters $queue_cid_prefix = str_replace(":", "-", $queue_cid_prefix); $queue_cid_prefix = str_replace("\"", "", $queue_cid_prefix); @@ -349,7 +346,8 @@ $destination = new destinations; //pre-populate the form - if (is_array($_GET) && $_POST["persistformvar"] != "true") { + if (is_array($_GET) && is_uuid($_GET["id"]) && $_POST["persistformvar"] != "true") { + $call_center_queue_uuid = $_GET["id"]; $sql = "select * from v_call_center_queues "; $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; @@ -438,9 +436,9 @@ if (permission_exists('call_center_wallboard')) { echo " \n"; } - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo "    "; } @@ -614,7 +612,7 @@ echo " \n"; echo " "; echo " \n"; - //echo " \n"; + //echo " \n"; echo " \n"; echo " \n"; echo " \n";