From e0f0c3d7867ac9c87458bb7be73f5f827ace88e5 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 4 Oct 2017 12:17:55 +1100 Subject: [PATCH] Automatically end stale cases even if technically still on a call --- admin/systemsortprocess.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/systemsortprocess.php b/admin/systemsortprocess.php index 678c7b55..2ffa8d63 100644 --- a/admin/systemsortprocess.php +++ b/admin/systemsortprocess.php @@ -124,8 +124,7 @@ while (!is_process_killed($process_id)) //check if process killed every $sleepin $sql = "UPDATE `case` SET current_operator_id = NULL, current_outcome_id = 5 WHERE case_id = '{$r['case_id']}' - AND current_operator_id IS NOT NULL - AND current_call_id IS NULL"; + AND current_operator_id IS NOT NULL"; $db->Execute($sql);