From b294830a697017ba97fb54223d9f3cbfbd7b51df Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Wed, 4 Mar 2009 01:00:07 +0000 Subject: [PATCH] Bug found by Saulius - case not ending when out of time --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index b00ca42b..1cf244af 100644 --- a/index.php +++ b/index.php @@ -85,6 +85,9 @@ if (isset($_GET['endcase'])) end_call_attempt($operator_id); end_case($operator_id); + $db->CompleteTrans(); //need to complete here otherwise getting the case later will fail + + $db->StartTrans(); //if ($db->HasFailedTrans()) {print "

FAILED AT ENDCASE

"; exit();} }