From c10effcba3bb27a1abe7ccfa2538b20ce4d4a13f Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Fri, 4 Feb 2011 00:06:27 +0000 Subject: [PATCH] Only add enabled operators to call list when in testing mode --- functions/functions.operator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }