diff --git a/functions/functions.operator.php b/functions/functions.operator.php index 019443af..ac7173b7 100644 --- a/functions/functions.operator.php +++ b/functions/functions.operator.php @@ -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); }