From 59266cdcd892109842cf05f2421a4169da44d8bf Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 29 May 2024 09:39:21 +0800 Subject: [PATCH] * Fix bug #50277. --- module/testcase/tao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/tao.php b/module/testcase/tao.php index 423ac262cb..8d007606a0 100644 --- a/module/testcase/tao.php +++ b/module/testcase/tao.php @@ -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);