Call Center: Fix SQL error on Agent Status change, clarify Status as Default Status on Agent Edit.

This commit is contained in:
Nate Jones
2015-04-13 17:00:09 +00:00
parent 47055cc9c3
commit 623af0c156
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -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();