Merge branch 'cyy_bug' into 'master'

* Fix bug #17175.

See merge request easycorp/zentaopms!2814
This commit is contained in:
李玉春
2022-04-08 03:03:55 +00:00
+1 -1
View File
@@ -499,7 +499,7 @@ class caselibModel extends model
$stepData->case = $caseID;
$stepData->version = 1;
$stepData->desc = htmlSpecialString($desc);
$stepData->expect = htmlSpecialString(trim($data->expect[$key][$id]));
$stepData->expect = htmlSpecialString(trim($this->post->expect[$key][$id]));
$this->dao->insert(TABLE_CASESTEP)->data($stepData)->autoCheck()->exec();
if($stepData->type == 'group') $parentStepID = $this->dao->lastInsertID();
if($stepData->type == 'step') $parentStepID = 0;