This commit is contained in:
songchenxuan
2022-01-06 17:32:48 +08:00
parent 05ec5dad47
commit 3e5df731bc
4 changed files with 113 additions and 109 deletions
+2 -1
View File
@@ -893,6 +893,7 @@ class testtaskModel extends model
if($type == 'bybuild') $row->assignedTo = zget($assignedToPairs, $caseID, '');
$this->dao->replace(TABLE_TESTRUN)->data($row)->exec();
$task = $this->getById($taskID);
/* When the cases linked the testtask, the cases link to the project. */
if($this->app->tab != 'qa')
{
@@ -906,7 +907,7 @@ class testtaskModel extends model
$data->version = 1;
$data->order = ++ $lastOrder;
$this->dao->replace(TABLE_PROJECTCASE)->data($data)->exec();
$this->loadModel('action')->create('case', $caseID, 'linked2testtask', '', $taskID);
$this->loadModel('action')->create('case', $caseID, 'linked2testtask', '', $task->name);
}
}
}