2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Only add enabled operators to call list when in testing mode

This commit is contained in:
azammitdcarf
2011-02-04 00:06:27 +00:00
parent a3f68d4372
commit c10effcba3

View File

@@ -444,7 +444,8 @@ function get_case_id($operator_id, $create = false)
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
SELECT $case_id as case_id,@row := @row + 1 AS priority,SUBSTRING_INDEX(extension,'/',-1) as phone, CONCAT(firstName, ' ', lastName)
FROM operator";
FROM operator
WHERE enabled = 1";
$db->Execute($sql);
}