From 05f0a2a3f33baee270db5e3c5e9cbee29a328ad7 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 28 Apr 2016 16:41:23 +0800 Subject: [PATCH] RooJsonOutputTrait.php --- RooJsonOutputTrait.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RooJsonOutputTrait.php b/RooJsonOutputTrait.php index c307d27d..207986df 100644 --- a/RooJsonOutputTrait.php +++ b/RooJsonOutputTrait.php @@ -131,6 +131,10 @@ trait Pman_Core_RooJsonOutputTrait { function jdata($ar,$total=false, $extra=array(), $cachekey = false) { + if ($this->transObj ) { + $this->transObj->query( connection_aborted() ? 'ROLLBACK' : 'COMMIT'); + } + // should do mobile checking??? if ($total == false) { $total = count($ar); -- 2.39.2