From b5e407a2442dca79545a558d8f351a84469cefe3 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 2 Dec 2020 16:31:35 +0800 Subject: [PATCH] * Fix bug#3685. --- module/testreport/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/testreport/model.php b/module/testreport/model.php index 1f1ac9e563..67ee2a9aa6 100644 --- a/module/testreport/model.php +++ b/module/testreport/model.php @@ -349,8 +349,10 @@ class testreportModel extends model { $caseIdList = $this->dao->select('`case`')->from(TABLE_TESTREPORT)->alias('t1') ->leftJoin(TABLE_TESTRUN)->alias('t2')->on('t1.tasks=t2.task') + ->leftJoin(TABLE_CASE)->alias('t3')->on('t2.case=t3.id') ->where('t1.id')->eq($reportID) ->andWhere('t1.deleted')->eq(0) + ->andWhere('t3.deleted')->eq(0) ->fetchPairs('case'); return $caseIdList;