mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 03:03:49 +00:00
Call Center: Fix SQL error on Agent Status change, clarify Status as Default Status on Agent Edit.
This commit is contained in:
@@ -425,6 +425,14 @@ $text['label-status']['pt-br'] = "Estado";
|
||||
$text['label-status']['pl'] = "Status";
|
||||
$text['label-status']['sv-se'] = "Status";
|
||||
|
||||
$text['label-default_status']['en-us'] = "Default Status";
|
||||
$text['label-default_status']['es-cl'] = "Estado Predeterminado";
|
||||
$text['label-default_status']['pt-pt'] = "Estado Predeterminado";
|
||||
$text['label-default_status']['fr-fr'] = "Statut Prédéterminée";
|
||||
$text['label-default_status']['pt-br'] = "Estado Predeterminado";
|
||||
$text['label-default_status']['pl'] = "z góry określony status";
|
||||
$text['label-default_status']['sv-se'] = "i förväg fastställda status";
|
||||
|
||||
$text['label-reject_delay_time']['en-us'] = "Reject Delay Time";
|
||||
$text['label-reject_delay_time']['es-cl'] = "Tiempo de Espera para Rechazar";
|
||||
$text['label-reject_delay_time']['pt-pt'] = "Tempo de espera para rejeitar";
|
||||
@@ -762,7 +770,7 @@ $text['description-strategy']['pt-br'] = "Selecione a estraétia da fila";
|
||||
$text['description-strategy']['pl'] = "Wybierz strategię";
|
||||
$text['description-strategy']['sv-se'] = "Välj strategi för ringflöde i kö:n.";
|
||||
|
||||
$text['description-status']['en-us'] = "Select the agent status.";
|
||||
$text['description-status']['en-us'] = "Select the default agent status.";
|
||||
$text['description-status']['es-cl'] = "Seleccione el estado del agente.";
|
||||
$text['description-status']['pt-pt'] = "Seleccione o estado do agente.";
|
||||
$text['description-status']['fr-fr'] = "Choisir le statut de l'agent.";
|
||||
|
||||
@@ -148,7 +148,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
//set the user_status
|
||||
$sql = "update v_users set ";
|
||||
$sql .= "user_status = '".$agent_status."' ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||
$sql .= "and username = '".$agent_name."' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
|
||||
@@ -58,8 +58,8 @@ else {
|
||||
//set the user_status
|
||||
$sql = "update v_users set ";
|
||||
$sql .= "user_status = '".$row['agent_status']."' ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and call_center_agent_uuid = '".$row['id']."' ";
|
||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||
$sql .= "and username = '".$row['agent_name']."' ";
|
||||
//echo $sql."\n";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
@@ -129,7 +129,7 @@ else {
|
||||
}
|
||||
//increment x
|
||||
$x++;
|
||||
|
||||
|
||||
}
|
||||
//echo "<pre>\n";
|
||||
//print_r($agents);
|
||||
@@ -190,9 +190,9 @@ else {
|
||||
foreach($agents as $row) {
|
||||
$str = '';
|
||||
$str .= "<tr >\n";
|
||||
$str .= " <td valign='top' class='".$row_style[$c]."'>".$row['agent_name']." </td>\n";
|
||||
$str .= " <td valign='top' class='".$row_style[$c]."'>".$row['agent_status']." </td>\n";
|
||||
$str .= " <td valign='top' class='".$row_style[$c]."'>";
|
||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_name']." </td>\n";
|
||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_status']." </td>\n";
|
||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>";
|
||||
$str .= " <input type='hidden' name='agents[".$x."][agent_name]' id='agent_".$x."_name' value='".$row['agent_name']."'>\n";
|
||||
$str .= " <input type='hidden' name='agents[".$x."][id]' id='agent_".$x."_name' value='".$row['call_center_agent_uuid']."'>\n";
|
||||
$str .= " <input type='radio' name='agents[".$x."][agent_status]' id='agent_".$x."_status_no_change' value='' checked='checked'><label for='agent_".$x."_status_no_change'>".$text['option-no_change']."</label>\n";
|
||||
|
||||
@@ -113,7 +113,7 @@ else {
|
||||
echo th_order_by('agent_call_timeout', $text['label-call_timeout'], $order_by, $order);
|
||||
echo th_order_by('agent_contact', $text['label-contact'], $order_by, $order);
|
||||
echo th_order_by('agent_max_no_answer', $text['label-max_no_answer'], $order_by, $order);
|
||||
echo th_order_by('agent_status', $text['label-status'], $order_by, $order);
|
||||
echo th_order_by('agent_status', $text['label-default_status'], $order_by, $order);
|
||||
//echo th_order_by('agent_wrap_up_time', $text['label-wrap_up_time'], $order_by, $order);
|
||||
//echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order);
|
||||
//echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order);
|
||||
|
||||
Reference in New Issue
Block a user