Merge branch 'sprint/203_mayue_bug23184' into 'master'

* Fix bug #23184.

See merge request easycorp/zentaopms!3913
This commit is contained in:
李玉春
2022-06-14 08:50:25 +00:00
+7 -1
View File
@@ -1404,7 +1404,13 @@ 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('version')->eq($version)
->set('fromCaseVersion')->eq($version)
->set('precondition')->eq($libCase->precondition)
->where('id')->eq($caseID)
->exec();
foreach($libCase->steps as $step)
{
unset($step->id);