This commit is contained in:
liumengyi
2024-05-29 09:50:07 +08:00
committed by caoyanyi
parent 34063ce1a5
commit 59266cdcd8
+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);