From fc63aa7cd94d4e88512a0bb5d25c6c1ac3229218 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Thu, 7 Mar 2024 16:58:27 +0800 Subject: [PATCH] * Fix fetch metric by code without filter deleted. --- module/metric/tao.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/metric/tao.php b/module/metric/tao.php index dc4ba17f5d..1fe6baf28f 100644 --- a/module/metric/tao.php +++ b/module/metric/tao.php @@ -124,8 +124,7 @@ class metricTao extends metricModel protected function fetchMetricByCode(string $code): object|false { return $this->dao->select('*')->from(TABLE_METRIC) - ->where('deleted')->eq('0') - ->andWhere('code')->eq($code) + ->where('code')->eq($code) ->fetch(); }