From 1347cd3df5c4be31f70ef64ce58824f1c33a907b Mon Sep 17 00:00:00 2001 From: zhouxin Date: Tue, 28 May 2024 08:49:14 +0800 Subject: [PATCH] * Fix bug #50226. --- module/metric/dataset.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/module/metric/dataset.php b/module/metric/dataset.php index 07e13df74e..5fa3997b2a 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -584,14 +584,9 @@ class dataset */ public function getLines($fieldList) { - $stmt = $this->dao->select($fieldList)->from(TABLE_MODULE)->alias('t1') - ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.root=t2.id') + return $this->dao->select($fieldList)->from(TABLE_MODULE)->alias('t1') ->where('t1.deleted')->eq(0) - ->andWhere('t2.deleted')->eq(0) - ->andWhere('t1.type')->eq('line') - ->andWhere('t2.type')->eq('program'); - - return $this->defaultWhere($stmt, 't2'); + ->andWhere('t1.type')->eq('line'); } /**