diff --git a/module/testcase/control.php b/module/testcase/control.php index 907aa1a6fd..bbfbb1ace6 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1401,8 +1401,12 @@ class testcase extends control $case = $this->testcase->getById($caseID); $libCase = $this->testcase->getById($libcaseID); $version = $case->version + 1; - $this->dao->update(TABLE_CASE)->set('version')->eq($version)->set('fromCaseVersion')->eq($version)->where('id')->eq($caseID)->exec(); - $this->dao->update(TABLE_CASE)->set('precondition')->eq($libCase->precondition)->where('id')->eq($caseID)->exec(); + $this->dao->update(TABLE_CASE) + ->set('version')->eq($version) + ->set('fromCaseVersion')->eq($version) + ->set('precondition')->eq($libCase->precondition) + ->where('id')->eq($caseID) + ->exec(); foreach($libCase->steps as $step) {