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:
@@ -444,7 +444,8 @@ function get_case_id($operator_id, $create = false)
|
|||||||
|
|
||||||
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
|
$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)
|
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);
|
$db->Execute($sql);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user