From f52bdfb360abfe174738cb621b5d9475ea2683b2 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 30 May 2023 15:11:44 +0800 Subject: [PATCH] * Fix bug #34353, do not commit transaction if time out. --- module/caselib/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/caselib/model.php b/module/caselib/model.php index 6bb6feecf4..e6973bce6d 100644 --- a/module/caselib/model.php +++ b/module/caselib/model.php @@ -403,6 +403,7 @@ class caselibModel extends model if(dao::isError()) helper::end(js::error(dao::getError())); $forceNotReview = $this->testcase->forceNotReview(); + $this->dao->begin(); foreach($cases as $key => $caseData) { if(!empty($_POST['id'][$key]) and empty($_POST['insert'])) @@ -519,6 +520,7 @@ class caselibModel extends model } } } + $this->dao->commit(); if($this->post->isEndPage) {