This commit is contained in:
liumengyi
2024-05-29 09:39:21 +08:00
parent daef435d4d
commit a0fe418cf2
+1 -1
View File
@@ -510,7 +510,7 @@ class testcaseTao extends testcaseModel
$this->loadModel('action');
foreach($testtasks as $taskID => $testtask)
{
if($testtask->branch != $branch && $taskID)
if(strpos(",{$testtask->branch},", ",{$branch},") === false && $taskID)
{
$this->dao->delete()->from(TABLE_TESTRUN)->where('task')->eq($taskID)->andWhere('`case`')->eq($caseID)->exec();
$this->action->create('case' ,$caseID, 'unlinkedfromtesttask', '', $taskID);