diff --git a/call.php b/call.php index 7bd565c7..5d84ea66 100644 --- a/call.php +++ b/call.php @@ -141,6 +141,7 @@ function display_outcomes($contacted,$ca,$case_id) global $db; +$db->StartTrans(); $operator_id = get_operator_id(); @@ -201,6 +202,7 @@ if (isset($_POST['submit'])) print "

"; //for XHTML xhtml_foot(); + $db->CompleteTrans(); exit(); } @@ -432,6 +434,6 @@ switch($state) xhtml_foot(); - +$db->CompleteTrans(); ?> diff --git a/index.php b/index.php index 6b98afbd..a7a8513a 100644 --- a/index.php +++ b/index.php @@ -49,6 +49,8 @@ $operator_id = get_operator_id(); if (isset($_GET['endwork'])) { + $db->StartTrans(); + if (isset($_GET['note'])) { $case_id = get_case_id($operator_id); @@ -59,6 +61,9 @@ if (isset($_GET['endwork'])) } end_call_attempt($operator_id); end_case($operator_id); + + $db->CompleteTrans(); + include("endwork.php"); exit(); } @@ -66,6 +71,8 @@ if (isset($_GET['endwork'])) if (isset($_GET['endcase'])) { + $db->StartTrans(); + if (isset($_GET['note'])) { $case_id = get_case_id($operator_id); @@ -76,8 +83,11 @@ if (isset($_GET['endcase'])) } end_call_attempt($operator_id); end_case($operator_id); + + $db->CompleteTrans(); } +$db->StartTrans(); xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("js/popup.js","js/tabber.js")); ?> @@ -157,6 +167,6 @@ xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("j CompleteTrans(); ?>