diff --git a/app/call_centers/resources/dashboard/call_center_agents.php b/app/call_centers/resources/dashboard/call_center_agents.php index 3b0eb11093..2541e19ca2 100644 --- a/app/call_centers/resources/dashboard/call_center_agents.php +++ b/app/call_centers/resources/dashboard/call_center_agents.php @@ -92,7 +92,7 @@ //send the agent status status to mod_call_center $cmd = "callcenter_config agent set status ".$agent_uuid." '".$agent_status."'"; - $response = event_socket::api($cmd); + $response = event_socket::api($cmd); //add or delete agents from the queue assigned by the tier foreach ($_POST['agents'] as $row) { @@ -148,7 +148,7 @@ unset($sql, $parameters); //get the call center queues from the database - if (!empty($_SESSION['call_center']['queue_login']['text']) && $_SESSION['call_center']['queue_login']['text'] == 'dynamic') { + //if ($settings->get('call_center, queue_login', '') == 'dynamic') { $sql = "select * from v_call_center_queues "; $sql .= "where domain_uuid = :domain_uuid "; $sql .= "and call_center_queue_uuid in ( "; @@ -161,7 +161,7 @@ $call_center_queues = $database->select($sql, $parameters, 'all'); $num_rows = !is_array($call_center_queues) ? 0 : @sizeof($call_center_queues); unset($sql, $parameters); - } + //} //get the agent details from event socket $switch_cmd = 'callcenter_config agent list '.($agent['call_center_agent_uuid'] ?? null);