From 3b70db8c7c0cc0416fcf628bd84aa1c466b77f23 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Wed, 10 Jan 2024 15:43:56 +0800 Subject: [PATCH] * Fix bug #43533. --- module/metric/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/metric/model.php b/module/metric/model.php index 6c18de122a..2585f33b8d 100755 --- a/module/metric/model.php +++ b/module/metric/model.php @@ -991,7 +991,9 @@ class metricModel extends model break; case 'product': $objectPairs = $this->dao->select('id, name')->from(TABLE_PRODUCT) - ->where('deleted')->eq(0)->fetchPairs(); + ->where('deleted')->eq(0) + ->andWhere('shadow')->eq(0) + ->fetchPairs(); break; case 'project': $objectPairs = $this->dao->select('id, name')->from(TABLE_PROJECT)