From f5497659279e6b5a82e96d8806a90558ff6d9362 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 2 Apr 2014 11:23:39 +1100 Subject: [PATCH] Fixed bug: When last outcome is Technical Phone Problems, case outcome set to not attempted or worked --- functions/functions.operator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/functions.operator.php b/functions/functions.operator.php index 6d68dd60..a7d3a48f 100644 --- a/functions/functions.operator.php +++ b/functions/functions.operator.php @@ -1980,7 +1980,7 @@ function end_case($operator_id) //code as eligible if ever eligible, or if referred to the supervisor, code as that if last call $sql = "SELECT c.outcome_id as outcome_id FROM `call` as c - JOIN outcome AS o ON ( c.outcome_id = o.outcome_id AND (o.eligible = 1 OR o.outcome_type_id = 2) ) + JOIN outcome AS o ON ( c.outcome_id = o.outcome_id AND (o.eligible = 1 OR o.outcome_type_id = 2 OR o.outcome_type_id = 1) ) WHERE c.case_id = '$case_id' ORDER BY c.call_id DESC";