* testtaskModel: return false if the $taskID parameter is empty.

This commit is contained in:
liugang
2023-09-13 10:37:51 +08:00
parent b5b43d502a
commit 8dacfa7606
+1 -1
View File
@@ -973,7 +973,7 @@ class testtaskModel extends model
*/
public function batchUnlinkCases(int $taskID, array $caseIdList): bool
{
if(!$caseIdList) return false;
if(!$taskID || !$caseIdList) return false;
$cases = $this->dao->select('`case`')->from(TABLE_TESTRUN)->where('task')->eq($taskID)->andWhere('`case`')->in($caseIdList)->fetchPairs();
if(!$cases) return false;