From ddf2f9954dffe593c7eb43f55081d726d6596f6b Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 29 Oct 2024 15:27:47 +0800 Subject: [PATCH] *[misc] modify dataset getBug. --- module/metric/dataset.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/metric/dataset.php b/module/metric/dataset.php index 44ea1e5533..1b47bb49c4 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -248,8 +248,10 @@ class dataset $stmt = $this->dao->select("$fieldList, $longlife as longlife") ->from(TABLE_BUG)->alias('t1') ->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product=t2.id') + ->leftJoin(TABLE_PROJECT)->alias('t3')->on('t1.project=t3.id') ->where('t1.deleted')->eq(0) ->andWhere('t2.deleted')->eq(0) + ->andWhere('t3.deleted')->eq(0) ->andWhere('t2.shadow')->eq(0); return $this->defaultWhere($stmt, 't2');